Closed cwsmith closed 1 year ago
The particle_structs/test/destroy_test.cpp and test/pseudoXGCm.cpp call cudaMemGetInfo to check device memory usage:
particle_structs/test/destroy_test.cpp
test/pseudoXGCm.cpp
cudaMemGetInfo
https://github.com/SCOREC/pumi-pic/blob/dcf019a5ff28832ba275fe0b21fe59b0a7bbb9a3/particle_structs/test/destroy_test.cpp#L63
There are two issues with this:
The first issue results in the destroy_test failing when another process uses device memory during execution of the region we monitor for no leaks.
destroy_test
The Kokkos developers suggested trying to register a callback as shown here:
https://github.com/kokkos/kokkos/blob/1fb0c284d458c75370094921d9f202c287502325/core/unit_test/tools/TestLogicalSpaces.hpp#L63-L71
This capability exists in Kokkos 3.2.00 and newer.
This has been replaced with memory testing.
The
particle_structs/test/destroy_test.cpp
andtest/pseudoXGCm.cpp
callcudaMemGetInfo
to check device memory usage:https://github.com/SCOREC/pumi-pic/blob/dcf019a5ff28832ba275fe0b21fe59b0a7bbb9a3/particle_structs/test/destroy_test.cpp#L63
There are two issues with this:
The first issue results in the
destroy_test
failing when another process uses device memory during execution of the region we monitor for no leaks.The Kokkos developers suggested trying to register a callback as shown here:
https://github.com/kokkos/kokkos/blob/1fb0c284d458c75370094921d9f202c287502325/core/unit_test/tools/TestLogicalSpaces.hpp#L63-L71
This capability exists in Kokkos 3.2.00 and newer.