From 1a2d48786b9449cf67a3f61fad87a7000c8123da Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Fri, 22 Sep 2023 16:37:55 -0400 Subject: [PATCH] fix version Signed-off-by: Jinzhe Zeng --- source/lib/src/gpu/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/lib/src/gpu/CMakeLists.txt b/source/lib/src/gpu/CMakeLists.txt index c1c17a1d1f..507ce41e18 100644 --- a/source/lib/src/gpu/CMakeLists.txt +++ b/source/lib/src/gpu/CMakeLists.txt @@ -59,10 +59,10 @@ elseif(USE_ROCM_TOOLKIT) set(CMAKE_HIP_STANDARD 14) add_definitions("-DCUB_IGNORE_DEPRECATED_CPP_DIALECT") - message(STATUS "HIP major version is " ${HIP_VERSION_MAJOR}) + message(STATUS "HIP major version is " ${hip_VERSION_MAJOR}) - set(CMAKE_HIP_FLAGS -fno-gpu-rdc; ${CMAKE_HIP_FLAGS}) # --amdgpu-target=gfx906 - if(HIP_VERSION VERSION_LESS 3.5.1) + set(CMAKE_HIP_FLAGS -fno-gpu-rdc ${CMAKE_HIP_FLAGS}) # --amdgpu-target=gfx906 + if(hip_VERSION VERSION_LESS 3.5.1) set(CMAKE_HIP_FLAGS -hc; ${CMAKE_HIP_FLAGS}) endif()