Skip to content

Commit

Permalink
Merge pull request #114 from abouteiller/ci/ctest-no-gpu
Browse files Browse the repository at this point in the history
ci: run with GPUs only when specifically requested in ctest (same as
  • Loading branch information
abouteiller authored Feb 14, 2024
2 parents 416aec9 + e8d3f30 commit 558f81f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Testings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ macro(dplasma_add_test m_nameradix m_dependsradix m_types)
set_tests_properties(dplasma_${prec}${m_nameradix}_mpi PROPERTIES DEPENDS launcher_mpi)
endif()
endif()
# enable devices only in tests that explicitely require them
# restrict memory use for oversubscribed runners
set_tests_properties(dplasma_${prec}${m_nameradix}_${m_suffix} PROPERTIES ENVIRONMENT
"PARSEC_MCA_device_cuda_enabled=0;PARSEC_MCA_device_hip_enabled=0;PARSEC_MCA_device_level_zero_enabled=0;PARSEC_MCA_device_cuda_memory_use=10;PARSEC_MCA_device_hip_memory_use=10;PARSEC_MCA_device_level_zero_memory_use=10")
endforeach()
endmacro()

Expand Down

0 comments on commit 558f81f

Please sign in to comment.