Use of GPU resource lock covers legacy CUDA.

This commit is contained in:
Ye Luo 2021-02-15 10:49:01 -06:00
parent 90984c2692
commit d8ef236439
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ FUNCTION( RUN_QMC_APP_NO_COPY TESTNAME WORKDIR PROCS THREADS TEST_ADDED TEST_LAB
ENDIF()
ENDIF()
if (ENABLE_OFFLOAD)
if (QMC_CUDA OR ENABLE_CUDA OR ENABLE_OFFLOAD)
set_tests_properties(${TESTNAME} PROPERTIES RESOURCE_LOCK exclusively_owned_gpus)
endif()

View File

@ -20,7 +20,7 @@ FUNCTION( ADD_UNIT_TEST TESTNAME PROCS THREADS TEST_BINARY )
ENVIRONMENT OMP_NUM_THREADS=${THREADS}
PROCESSOR_AFFINITY TRUE )
if (ENABLE_OFFLOAD)
if (QMC_CUDA OR ENABLE_CUDA OR ENABLE_OFFLOAD)
set_tests_properties(${TESTNAME} PROPERTIES RESOURCE_LOCK exclusively_owned_gpus)
endif()