diff --git a/source/lib/src/gpu/CMakeLists.txt b/source/lib/src/gpu/CMakeLists.txt index 5eb833e24d..3bd24cc620 100644 --- a/source/lib/src/gpu/CMakeLists.txt +++ b/source/lib/src/gpu/CMakeLists.txt @@ -73,9 +73,10 @@ elseif(USE_ROCM_TOOLKIT) message(STATUS "HIP major version is " ${hip_VERSION_MAJOR}) - set(CMAKE_HIP_FLAGS -fno-gpu-rdc ${CMAKE_HIP_FLAGS}) # --amdgpu-target=gfx906 + 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}) + set(CMAKE_HIP_FLAGS "-hc ${CMAKE_HIP_FLAGS}") endif() file(GLOB SOURCE_FILES "*.cu")