Skip to content

Commit

Permalink
GPU: Force opencl2 to use clang-internal SPIR-V backend
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Oct 25, 2023
1 parent 6dd455b commit abb8617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GPU/GPUTracking/Base/opencl2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ if(OPENCL2_ENABLED_SPIRV) # BUILD OpenCL2 intermediate code for SPIR-V target
COMMAND ${LLVM_CLANG}
-O0
--target=spirv64
-fintegrated-objemitter
${OCL_FLAGS}
${OCL_DEFINECL}
-o ${CL_BIN}.spirv -c ${CL_SRC}
Expand Down

0 comments on commit abb8617

Please sign in to comment.