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 PROCESSORS specification when creating tests #675

Open
bartgol opened this issue Mar 23, 2021 · 0 comments
Open

Add PROCESSORS specification when creating tests #675

bartgol opened this issue Mar 23, 2021 · 0 comments

Comments

@bartgol
Copy link
Collaborator

bartgol commented Mar 23, 2021

When using add_test, if we set the PROCESSORS property, we can more efficiently use the parallel execution of ctest.

To run multiple tests concurrently, one should do CTEST_PARALLEL_LEVEL=N ctest. However, without setting the PROCESSOR property, cmake/ctest thinks that each test uses 1 processor, so with N=2 you'd be running two tests concurrently, even if they are MPI tests, using several ranks. Ideally, one wants to set N to be the number of available resources, and let ctest figure out how many tests to run concurrently. I sometimes forget what I set the max number of ranks to be, and don't really want to go check, to figure out how many tests I can run concurrently...

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