Skip to content

Commit 415a48a

Browse files
authored
Only build hipDNN tests if GCC version >= 13 (#480)
1 parent a806605 commit 415a48a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Libraries/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ if(
5252
add_subdirectory(hipCUB)
5353
if(CMAKE_VERSION VERSION_LESS "3.25.2")
5454
message(WARNING "CMake version < 3.25.2, not building hipDNN examples.")
55+
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "13")
56+
message(WARNING "Current GCC version is ${CMAKE_CXX_COMPILER_VERSION} which is < 13, not building hipDNN examples.")
5557
else()
5658
if (ROCM_EXAMPLES_ENABLE_HIPDNN)
5759
add_subdirectory(hipDNN)

0 commit comments

Comments
 (0)