Skip to content

Commit

Permalink
HIP: fix CMake relocatable device code option
Browse files Browse the repository at this point in the history
Add missing `:`
  • Loading branch information
psychocoderHPC authored and fwyzard committed Jun 17, 2024
1 parent 73642da commit 48a66b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/alpakaCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ if(alpaka_ACC_GPU_HIP_ENABLE)
endif()

if(alpaka_RELOCATABLE_DEVICE_CODE STREQUAL ON)
alpaka_set_compiler_options(DEVICE target alpaka "$<$<COMPILE_LANGUAGE:HIP>:SHELL-fgpu-rdc>")
alpaka_set_compiler_options(DEVICE target alpaka "$<$<COMPILE_LANGUAGE:HIP>:SHELL:-fgpu-rdc>")
target_link_options(alpaka INTERFACE "$<$<LINK_LANGUAGE:HIP>:SHELL:-fgpu-rdc --hip-link>")
elseif(alpaka_RELOCATABLE_DEVICE_CODE STREQUAL OFF)
alpaka_set_compiler_options(DEVICE target alpaka "$<$<COMPILE_LANGUAGE:HIP>:SHELL:-fno-gpu-rdc>")
Expand Down

0 comments on commit 48a66b0

Please sign in to comment.