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

init_globally throwing a run-time error #3208

Closed
NK-Nikunj opened this issue Mar 1, 2018 · 2 comments
Closed

init_globally throwing a run-time error #3208

NK-Nikunj opened this issue Mar 1, 2018 · 2 comments

Comments

@NK-Nikunj
Copy link
Member

NK-Nikunj commented Mar 1, 2018

Expected Behavior

Should run properly

Actual Behavior

terminate called after throwing an instance of 'std::invalid_argument'
  what():  hpx::resource::get_partitioner() can be called only after the resource 
           partitioner has been allowed to parse the command line options.
Aborted (core dumped)
@NK-Nikunj NK-Nikunj changed the title init_globally.cpp throwing run-time error init_globally throwing a run-time error Mar 1, 2018
@hkaiser hkaiser added this to the 1.1.0 milestone Mar 1, 2018
@msimberg
Copy link
Contributor

msimberg commented Mar 2, 2018

This seems to happen only in release mode.

I had a very similar issue (either release or debug throwing that error, and the other not, but I don't remember if it was the same way around) trying to make an HPX-enabled library, which in the end was related to me not linking to HPX correctly. It may not be the same, but could be related (I will look into this next week).

@hkaiser
Copy link
Member

hkaiser commented Mar 2, 2018

FWIW, we use a similar global initialization scheme to enable HPX in a Python environment and have not seen any issues recently (see: https://github.com/STEllAR-GROUP/phylanx/blob/master/python/src/init_hpx.cpp)

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

No branches or pull requests

3 participants