Skip to content

Commit 8b7ae7d

Browse files
committed
GPU RTC: Some cosmetic CMake changes to make RTC command lines more homogeneous
1 parent 06e7769 commit 8b7ae7d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

GPU/GPUTracking/Base/cuda/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ add_custom_target(${MODULE}_CUDA_SRC_CHK ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}
8484

8585
add_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
)

GPU/GPUTracking/Base/cuda/GPUReconstructionCUDArtc.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
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

GPU/GPUTracking/Base/hip/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ add_custom_target(${MODULE}_HIP_SRC_CHK ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/
122122

123123
add_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
)

0 commit comments

Comments
 (0)