File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ add_custom_target(${MODULE}_CUDA_SRC_CHK ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}
8484
8585add_custom_command (
8686 OUTPUT ${GPU_RTC_BIN} .command
87- COMMAND echo -n "${CMAKE_CUDA_COMPILER} ${GPU_RTC_FLAGS_SEPARATED } ${GPU_RTC_DEFINES} -fatbin" > ${GPU_RTC_BIN} .command
87+ COMMAND echo -n "${CMAKE_CUDA_COMPILER} -forward-unknown-to-host-compiler ${GPU_RTC_DEFINES } ${GPU_RTC_FLAGS_SEPARATED} -x cu -fatbin" > ${GPU_RTC_BIN} .command
8888 COMMAND_EXPAND_LISTS VERBATIM
8989 COMMENT "Preparing CUDA RTC command file ${GPU_RTC_BIN} .command"
9090)
Original file line number Diff line number Diff line change 1616#define GPUCA_GPUCODE_COMPILEKERNELS
1717#define GPUCA_RTC_SPECIAL_CODE (...) GPUCA_RTC_SPECIAL_CODE(__VA_ARGS__)
1818#define GPUCA_DETERMINISTIC_CODE (...) GPUCA_DETERMINISTIC_CODE(__VA_ARGS__)
19+ // GPUReconstructionCUDAIncludesHost.h auto-prependended without preprocessor running
1920#include " GPUReconstructionCUDADef.h"
2021#include " GPUReconstructionIncludesDeviceAll.h"
2122
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ add_custom_target(${MODULE}_HIP_SRC_CHK ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/
122122
123123add_custom_command (
124124 OUTPUT ${GPU_RTC_BIN} .command
125- COMMAND echo -n "${CMAKE_HIP_COMPILER} ${GPU_RTC_FLAGS_SEPARATED } ${GPU_RTC_DEFINES } -x hip --cuda-device-only" > ${GPU_RTC_BIN} .command
125+ COMMAND echo -n "${CMAKE_HIP_COMPILER} ${GPU_RTC_DEFINES } ${GPU_RTC_FLAGS_SEPARATED } -x hip --cuda-device-only" > ${GPU_RTC_BIN} .command
126126 COMMAND_EXPAND_LISTS VERBATIM
127127 COMMENT "Preparing HIP RTC command file ${GPU_RTC_BIN} .command"
128128)
You can’t perform that action at this time.
0 commit comments