Skip to content

Commit

Permalink
tests-small-fixes-ata01(02) [tests] Do not print rocminfo output unle…
Browse files Browse the repository at this point in the history
  • Loading branch information
atamazov committed Oct 27, 2023
1 parent 5806e23 commit 8453c2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ if(NOT (MIOPEN_TEST_GFX900 OR MIOPEN_TEST_GFX906 OR MIOPEN_TEST_GFX908 OR MIOPEN
OUTPUT_VARIABLE ROCMINFO_OUTPUT
RESULT_VARIABLE ROCMINFO_EXIT_STATUS
)
message(STATUS "${ROCMINFO_OUTPUT}")
if(ROCMINFO_OUTPUT MATCHES "no GPU devices")
message(WARNING "ROCk module is NOT loaded, possibly no GPU devices")
set(MIOPEN_NO_GPU TRUE)
Expand Down Expand Up @@ -152,6 +151,10 @@ if(NOT (MIOPEN_TEST_GFX900 OR MIOPEN_TEST_GFX906 OR MIOPEN_TEST_GFX908 OR MIOPEN
if(NOT (MIOPEN_TEST_GPU_DETECTION_FAILED) AND ROCMINFO_OUTPUT MATCHES "xnack\\+")
set(MIOPEN_TEST_GPU_XNACK_ENABLED ON)
endif()

if(MIOPEN_TEST_GPU_DETECTION_FAILED)
message(STATUS "${ROCMINFO_OUTPUT}")
endif()
else()
message(WARNING "ROCMINFO NOT FOUND, GPU TYPE UNKNOWN. Manually set respective MIOPEN_TEST_GFX* CMake variable to specify target GPU for testing.")
set(MIOPEN_TEST_GPU_DETECTION_FAILED TRUE)
Expand Down

0 comments on commit 8453c2c

Please sign in to comment.