Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Sep 22, 2023
1 parent ee83aec commit 1a2d487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/lib/src/gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 1a2d487

Please sign in to comment.