File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
GPU/GPUTracking/Base/opencl2 Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ if(OPENCL2_ENABLED_SPIRV) # BUILD OpenCL2 intermediate code for SPIR-V target
5353 MAIN_DEPENDENCY ${CL_SRC}
5454 IMPLICIT_DEPENDS CXX ${CL_SRC}
5555 COMMAND_EXPAND_LISTS
56- COMMENT "Compiling OpenCL2 CL source file ${CL_SRC} to SPIRV" )
56+ COMMENT "Compiling OpenCL2 CL source file ${CL_SRC} to SPIRV ${CL_BIN} .spirv " )
5757
5858 create_binary_resource(${CL_BIN} .spirv ${CMAKE_CURRENT_BINARY_DIR} /GPUReconstructionOCLCode.spirv.o)
5959 set (SRCS ${SRCS} ${CMAKE_CURRENT_BINARY_DIR} /GPUReconstructionOCLCode.spirv.o)
@@ -64,12 +64,14 @@ if(OPENCL2_ENABLED) # BUILD OpenCL2 source code for runtime compilation target
6464 add_custom_command (
6565 OUTPUT ${CL_BIN} .src
6666 COMMAND ${LLVM_CLANG}
67- ${OCL_DEFINECL} -cl-no -stdinc
67+ ${OCL_FLAGS}
68+ ${OCL_DEFINECL}
69+ -cl-no -stdinc
6870 -E ${CL_SRC} > ${CL_BIN} .src
6971 MAIN_DEPENDENCY ${CL_SRC}
7072 IMPLICIT_DEPENDS CXX ${CL_SRC}
7173 COMMAND_EXPAND_LISTS
72- COMMENT "Preparing OpenCL2 CL source file for run time compilation" )
74+ COMMENT "Preparing OpenCL2 CL source file for run time compilation ${CL_BIN} .src " )
7375
7476 create_binary_resource(${CL_BIN} .src ${CMAKE_CURRENT_BINARY_DIR} /GPUReconstructionOCLCode.src.o)
7577 set (SRCS ${SRCS} ${CMAKE_CURRENT_BINARY_DIR} /GPUReconstructionOCLCode.src.o)
You can’t perform that action at this time.
0 commit comments