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

Initialization hangs when only setting --hpx:cores #6345

Open
Pansysk75 opened this issue Sep 7, 2023 · 0 comments
Open

Initialization hangs when only setting --hpx:cores #6345

Pansysk75 opened this issue Sep 7, 2023 · 0 comments

Comments

@Pansysk75
Copy link
Member

Pansysk75 commented Sep 7, 2023

Expected Behavior

If --hpx:threads hasn't been set and --hpx:cores has been set to some (smaller than default) value, silently set the number of OS threads to be equal to the number of specified cores, or throw an error if the user doesn't also explicitly specify a sufficiently small number for --hpx:threads (such that OS threads <= cores).

If both have been set by the user such that --hpx:threads > --hpx:cores, either throw an error or silently reduce the number of OS threads so that OS threads == cores.

(I assume that it's a bad idea to spawn more OS threads than cores we are allowed to run on.)

Actual Behavior

Initialization hangs when only setting --hpx:cores to a value smaller that the default number of OS threads, or when setting both --hpx:threads and --hpx:cores such that --hpx:threads > --hpx:cores.

@hkaiser How do you think we should handle this?
I stumbled on this because the options_as_config regression test hangs on Rostam. I don't think I have any peculiar setup, so shouldn't it also fail on the CIs in the same manner?

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

1 participant