Skip to content

Commit

Permalink
ci: run with GPUs only when specifically requested in ctest (same as
Browse files Browse the repository at this point in the history
parsec)
  • Loading branch information
abouteiller committed Feb 14, 2024
1 parent 416aec9 commit e8d3f30
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 e8d3f30

Please sign in to comment.