Skip to content

Conversation

@kennyweiss
Copy link
Member

@kennyweiss kennyweiss commented Dec 22, 2025

This PR add the PROCESSORS property to tests in the blt_add_test macro to give CTest more context in scheduling its tests.

The number of processors is based on the number of mpi ranks -- provided through NUM_MPI_TASKS -- and the number of OpenMP threads -- provided through NUM_OMP_THREADS.

We also throw a FATAL_ERROR if the number of threads is not an integer or is less than 1.

Update:

  • I tested this out in Axom (Improves test throughput, especially for threaded tests axom#1749) and the results are not the slam dunk I thought they were. Adding the PROCESSORS property to tests appears to slow the testing down somewhat (~3% for the Axom tests).
  • So, we should probably hold off on merging this, or, at the very least, making it opt-in. I'm going to mark this PR as DRAFT.

…nd OpenMP threads

This improves ctest's ability to schedule the tests.
If NUM_MPI_TASKS or NUM_OMP_THREADS is not supplied, they are counted as 1.
Copy link
Member

@adayton1 adayton1 left a comment

Choose a reason for hiding this comment

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

Thanks, @kennyweiss !

Copy link
Member

@white238 white238 left a comment

Choose a reason for hiding this comment

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

Thanks @kennyweiss ! Did you notice a speed up after this?

@kennyweiss kennyweiss marked this pull request as draft December 22, 2025 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature mpi openmp Related to OpenMP support testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants