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

The runtime can't be run concurrently multiple times #8

Open
destructor64 opened this issue Mar 27, 2017 · 3 comments
Open

The runtime can't be run concurrently multiple times #8

destructor64 opened this issue Mar 27, 2017 · 3 comments
Labels

Comments

@destructor64
Copy link
Collaborator

When one runtime instance is running, another one can not be started at the same time.
The error message is:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<hpx::exception> >' what(): bind: Address already in use: HPX(network_error)

This seems to indicate that the runtime is opening a server socket on a specific port and each instance following that tries to do the same on the same port and thus fails.

This issue prevents us to run multiple tests in parallel reliably during development.

@W4RH4WK
Copy link
Member

W4RH4WK commented Oct 13, 2017

This also seems to prevent one from executing unit tests in parallel (using ctest -j4 for example).

Any updates on this?

@destructor64
Copy link
Collaborator Author

Yeah - not a real solution to the problem mentioned here though.
I guess we got this solution via mail or somehow, but we use it on our CI system all the time.
You have to disable networking support to do this:
-DHPX_WITH_NETWORKING=OFF

This solution was not communicated here though...

@sithhell
Copy link
Member

Not quite correct. -DHPX_WITH_NETWORKING=OFF is considered to be a workaround. Once distributed tests are integrated, this is no longer viable. Running tests in parallel isn't really supported as each individual test already runs in parallel.
The issue has been left open to remind others that invoking ctest in
parallel is not really supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants