guillaumetousignant / NDG_cuda

MIT License
1 stars 0 forks source link

All tests pass when running ctest, but not when running unit_tests directly #7

Closed guillaumetousignant closed 3 years ago

guillaumetousignant commented 3 years ago

Maybe ctest doesn't init cuda or mpi correctly? Maybe it doesn't init test_main correctly?

add_test(NAME MyAwesomeTest COMMAND my_test) apparently can run the whole thing, but not individual tests.

guillaumetousignant commented 3 years ago

Ok turns out if you break the GPU context enough, such as accessing a lot of random memory, all tests passchen running ctest for some reason.