Fixing setting of GPUs to 2 when 1 or less GPUs on system for unit tests (#481)
이 커밋은 다음에 포함됨:
1 파일이 변경됨
+1
-1
+1
-1
@@ -70,7 +70,7 @@ if(BUILD_TESTS)
|
||||
find_program( rocminfo_executable rocminfo )
|
||||
execute_process(COMMAND bash "-c" "${rocminfo_executable} | grep 'Device Type' | grep GPU | wc -l | tr -d '\n'" OUTPUT_VARIABLE gtest_num_gpus)
|
||||
if(${gtest_num_gpus} MATCHES "0" OR ${gtest_num_gpus} MATCHES "1")
|
||||
set(gtest_num_gpus,"2")
|
||||
set(gtest_num_gpus "2")
|
||||
endif()
|
||||
target_compile_options(UnitTests PRIVATE -DGTESTS_NUM_GPUS=${gtest_num_gpus})
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단