Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable background thread when networking is off #3234

Merged

Conversation

msimberg
Copy link
Contributor

@msimberg msimberg commented Mar 12, 2018

Proposed Changes

  • Disable the background thread completely in scheduling_loop if HPX_HAVE_NETWORKING=OFF
  • The flag can still be set but has no effect
  • This is unlikely to give a big speedup in any application, but it's nice to disable as the background thread doesn't do anything useful with networking off

@biddisco Might give you a tiny speedup for Cholesky, unless you've already disabled the background thread.

WIP as I will still run the tests with pycicle and networking off.

hkaiser
hkaiser previously approved these changes Mar 13, 2018
Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@hkaiser hkaiser added this to the 1.1.0 milestone Mar 13, 2018
@msimberg
Copy link
Contributor Author

FYI, this timed out on pycicle so I'll take this as an opportunity to check what breaks with networking off (or what tests etc. should be disabled, if they're not already disabled). Consider this low-priority exploration.

@hkaiser
Copy link
Member

hkaiser commented Mar 13, 2018

@msimberg Thanks! And yes, tests will be a problem - we never really made this consistent.

@msimberg msimberg removed this from the 1.1.0 milestone Mar 22, 2018
The flag can still be set but has no effect.
…elevant options in hpxrun.py

Force one locality for all tests with more than one locality and don't pass
localities and parcelport options on from hpxrun.py to the test
executable (since the options are disabled and cause the test to fail).
@msimberg msimberg force-pushed the no-background-thread-networking-off branch from 6ee8cad to 9a62c15 Compare May 8, 2018 15:29
@msimberg msimberg force-pushed the no-background-thread-networking-off branch 2 times, most recently from d47a3ea to d712398 Compare May 11, 2018 12:11
@msimberg msimberg force-pushed the no-background-thread-networking-off branch from a43e95b to b2ebc9d Compare May 11, 2018 20:09
@msimberg
Copy link
Contributor Author

This ran successfully with HPX_HAVE_NETWORKING=OFF now. I will keep a pycicle instance running with networking off for master only.

I've

  • forced one locality (in CMake) for tests if networking is off
  • ignored networking related options in hpxrun.py if localities is 1 (as they're disabled in HPX)
  • completely disabled some tests that checked that the test is running with more than one locality
  • done some small adjustments to tests that use multiple localities but don't require it (they use e.g. find_remote_localities and will do almost nothing since the vector is empty, but I kept them enabled as they should still compile correctly)

@msimberg msimberg changed the title WIP: Disable background thread when networking is off Disable background thread when networking is off May 14, 2018
Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@msimberg msimberg added this to the 1.2.0 milestone May 16, 2018
@hkaiser hkaiser merged commit ba2e57e into STEllAR-GROUP:master May 16, 2018
@msimberg msimberg mentioned this pull request Aug 20, 2018
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants