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

Add processor and processor_affinity property to tests #777

Open
bartgol opened this issue Jan 12, 2022 · 0 comments
Open

Add processor and processor_affinity property to tests #777

bartgol opened this issue Jan 12, 2022 · 0 comments

Comments

@bartgol
Copy link
Collaborator

bartgol commented Jan 12, 2022

Without these properties, when running multiple tests at once, all ranks collapse on the same cores (MPI does not check if other MPI jobs are running, so it usually takes cores 0-N). With the properties set, however, ctest ensures tests are run on different cores and don't overload cores.

NOTE: PROCESSOR_AFFINITY TRUE ensures no 2 tests can share cores, while PROCESSORS XYZ ensures that, when doing ctest -j N a test "consumes" XYZ of the N cores (without the property, ctest assumes that the test consumes 1 core).

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

No branches or pull requests

1 participant