diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0002-Build-not-able-to-locate-cpp_generation_tool.patch')
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0002-Build-not-able-to-locate-cpp_generation_tool.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0002-Build-not-able-to-locate-cpp_generation_tool.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0002-Build-not-able-to-locate-cpp_generation_tool.patch new file mode 100644 index 00000000..45288ce1 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/0002-Build-not-able-to-locate-cpp_generation_tool.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 8c330d0cb5167612296801f0202b0de35e9ca88d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dongwon Kim <dongwon.kim@intel.com> | ||
| 3 | Date: Sat, 21 Aug 2021 16:09:39 -0700 | ||
| 4 | Subject: [PATCH 2/5] Build not able to locate cpp_generation_tool. | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [oe specific] | ||
| 7 | |||
| 8 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 9 | Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> | ||
| 10 | --- | ||
| 11 | shared/source/built_ins/kernels/CMakeLists.txt | 10 +++++----- | ||
| 12 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
| 13 | |||
| 14 | Index: git/shared/source/built_ins/kernels/CMakeLists.txt | ||
| 15 | =================================================================== | ||
| 16 | --- git.orig/shared/source/built_ins/kernels/CMakeLists.txt | ||
| 17 | +++ git/shared/source/built_ins/kernels/CMakeLists.txt | ||
| 18 | @@ -122,9 +122,9 @@ function(compile_builtin core_type platf | ||
| 19 | endif() | ||
| 20 | add_custom_command( | ||
| 21 | OUTPUT ${OUTPUT_FILE_CPP} | ||
| 22 | - COMMAND $<TARGET_FILE:cpp_generate_tool> --file ${BINARY_OUTPUT}.bin --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --device ${RELEASE_FILENAME} | ||
| 23 | + COMMAND cpp_generate_tool --file ${BINARY_OUTPUT}.bin --output ${OUTPUT_FILE_CPP} --array ${mode}_${BASENAME} --device ${RELEASE_FILENAME} | ||
| 24 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
| 25 | - DEPENDS ${OUTPUT_FILES_BINARIES} $<TARGET_FILE:cpp_generate_tool> | ||
| 26 | + DEPENDS ${OUTPUT_FILES_BINARIES} cpp_generate_tool | ||
| 27 | ) | ||
| 28 | list(APPEND BUILTINS_COMMANDS "${OUTPUT_FILE_CPP}") | ||
| 29 | else() | ||
| 30 | @@ -176,9 +176,9 @@ function(generate_cpp_spirv builtin) | ||
| 31 | endif() | ||
| 32 | add_custom_command( | ||
| 33 | OUTPUT ${OUTPUT_FILE_CPP} | ||
| 34 | - COMMAND $<TARGET_FILE:cpp_generate_tool> --file ${GENERATED_SPV_INPUT} --output ${OUTPUT_FILE_CPP} --array ${BASENAME} | ||
| 35 | + COMMAND cpp_generate_tool --file ${GENERATED_SPV_INPUT} --output ${OUTPUT_FILE_CPP} --array ${BASENAME} | ||
| 36 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
| 37 | - DEPENDS ${GENERATED_SPV_INPUT} $<TARGET_FILE:cpp_generate_tool> | ||
| 38 | + DEPENDS ${GENERATED_SPV_INPUT} cpp_generate_tool | ||
| 39 | ) | ||
| 40 | set(OUTPUT_LIST_CPP_FILES ${OUTPUT_LIST_CPP_FILES} ${OUTPUT_FILE_CPP} PARENT_SCOPE) | ||
| 41 | else() | ||
