Skip to content

Conversation

bobpaw
Copy link
Collaborator

@bobpaw bobpaw commented Feb 6, 2025

add ctest PROCESSORS property to aid scheduling

This helps speed up testing when using ctest -j8 or the like, because the CTest scheduler can run groups of tests based on the processors they use. Without this info, it may schedule 8 tests at once, some of which actually use multiple processors.

  • test/testing.cmake: add PROCESSORS property to tests created with mpi_test to help the parallel scheduler.

On trouble, I got the following results:

without PROCESSORS: Total Test time (real) = 94.14 sec
with PROCESSORS: Total Test time (real) = 60.01 sec

- test/testing.cmake: add PROCESSORS property to tests created with
  mpi_test to help the parallel scheduler.

Signed-off-by: Aiden Woodruff <[email protected]>
@bobpaw bobpaw changed the base branch from master to develop February 6, 2025 16:34
@bobpaw bobpaw requested a review from cwsmith February 6, 2025 16:34
Copy link
Contributor

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thank you.

@cwsmith cwsmith merged commit a900c47 into develop Feb 6, 2025
@cwsmith cwsmith deleted the apw/ctest_procs branch February 6, 2025 16:57
@cwsmith cwsmith added the v4.1.0 changes included in the 4.1.0 release label Aug 26, 2025
@cwsmith cwsmith mentioned this pull request Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4.1.0 changes included in the 4.1.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants