@@ -25,7 +25,7 @@ if(NOT DEFINED GPUCA_HIP_HIPIFY_FROM_CUDA OR "${GPUCA_HIP_HIPIFY_FROM_CUDA}")
2525 set (GPUCA_HIP_SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR} /hipify)
2626 file (MAKE_DIRECTORY ${GPUCA_HIP_SOURCE_DIR} )
2727 set (GPUCA_HIP_FILE_LIST GPUReconstructionCUDA.cu GPUReconstructionCUDAExternalProvider.cu GPUReconstructionCUDA.h GPUReconstructionCUDAInternals.h GPUReconstructionCUDAkernel.template.cu CUDAThrustHelpers.h GPUReconstructionCUDADef.h GPUReconstructionCUDAGenRTC.cxx GPUReconstructionCUDAKernels.cu GPUReconstructionCUDArtc.cu)
28- set (GPUCA_HIP_LOCAL_FILE_LIST GPUReconstructionHIPIncludes .h)
28+ set (GPUCA_HIP_LOCAL_FILE_LIST GPUReconstructionHIPIncludesHost .h)
2929 set (HIP_SOURCES "" )
3030 foreach (file ${GPUCA_HIP_FILE_LIST} )
3131 get_filename_component (ABS_CUDA_SORUCE ../cuda/${file} ABSOLUTE )
@@ -63,7 +63,7 @@ endif()
6363
6464set (SRCS ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIP.hip ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPKernels.hip)
6565set (SRCS_CXX ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPGenRTC.cxx)
66- set (HDRS ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIP.h ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPInternals.h ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPDef.h ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPIncludes .h ${GPUCA_HIP_SOURCE_DIR} /HIPThrustHelpers.h)
66+ set (HDRS ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIP.h ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPInternals.h ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPDef.h ${GPUCA_HIP_SOURCE_DIR} /GPUReconstructionHIPIncludesHost .h ${GPUCA_HIP_SOURCE_DIR} /HIPThrustHelpers.h)
6767
6868# -------------------------------- Prepare RTC -------------------------------------------------------
6969enable_language (ASM)
@@ -104,7 +104,7 @@ set(GPU_RTC_BIN ${CMAKE_CURRENT_BINARY_DIR}/GPUReconstructionHIPrtc)
104104# cmake-format: off
105105add_custom_command (
106106 OUTPUT ${GPU_RTC_BIN} .src
107- COMMAND cat ${GPUDIR} /Base/hip/GPUReconstructionHIPIncludes.h > ${GPU_RTC_BIN} .src
107+ COMMAND cp ${GPUDIR} /Base/hip/GPUReconstructionHIPIncludesHost.h ${GPU_RTC_BIN} .src
108108 COMMAND ${CMAKE_CXX_COMPILER} ${GPU_RTC_DEFINES} ${GPU_RTC_INCLUDES} -std=c++${CMAKE_HIP_STANDARD} -D__HIPCC__ -D__HIP_DEVICE_COMPILE__ -x c++ -nostdinc -E ${GPU_RTC_SRC} >> ${GPU_RTC_BIN} .src
109109 MAIN_DEPENDENCY ${GPU_RTC_SRC}
110110 IMPLICIT_DEPENDS CXX ${GPU_RTC_SRC}
0 commit comments