xcompact3d / x3d2

https://xcompact3d.github.io/x3d2
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Run tests in parallel on CI #49

Closed Nanoseb closed 6 months ago

Nanoseb commented 6 months ago

closes #20

Nanoseb commented 6 months ago

I had to use --oversubscribe because the CI runner doesn't seem to have more than 1 core. Though it shouldn't matter for the logic of the tests themselves.

semi-h commented 6 months ago

Can we specify number of ranks we want to test with somehow when building with a command line option? Or do we have to edit the relevant line in the CMakeLists.txt?

Nanoseb commented 6 months ago

Can we specify number of ranks we want to test with somehow when building with a command line option? Or do we have to edit the relevant line in the CMakeLists.txt?

Yes, you don't have to edit the CMakeLists.txt file. It is set to 4 by default, but is accessible via the CMAKE_CTEST_NPROCS variable so cmake -DCMAKE_CTEST_NPROCS=42 ... will work too. Or editing it later on via ccmake.