diff options
Diffstat (limited to 'dynamic-layers')
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/external-ocloc.patch | 40 | ||||
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_22.08.22549.bb (renamed from dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_21.40.21182.bb) | 10 |
2 files changed, 46 insertions, 4 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/external-ocloc.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/external-ocloc.patch new file mode 100644 index 00000000..9ee8c96a --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/external-ocloc.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From 1189028d9f77265edf6258a66f8ecadf3aad556a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dongwon Kim <dongwon.kim@intel.com> | ||
| 3 | Date: Wed, 2 Mar 2022 15:52:45 -0800 | ||
| 4 | Subject: [PATCH] external ocloc | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate | ||
| 7 | |||
| 8 | Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> | ||
| 9 | --- | ||
| 10 | cmake/ocloc_cmd_prefix.cmake | 14 ++++++++------ | ||
| 11 | 1 file changed, 8 insertions(+), 6 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/cmake/ocloc_cmd_prefix.cmake b/cmake/ocloc_cmd_prefix.cmake | ||
| 14 | index 9b6bd3cd3..0aba48709 100644 | ||
| 15 | --- a/cmake/ocloc_cmd_prefix.cmake | ||
| 16 | +++ b/cmake/ocloc_cmd_prefix.cmake | ||
| 17 | @@ -4,12 +4,14 @@ | ||
| 18 | # SPDX-License-Identifier: MIT | ||
| 19 | # | ||
| 20 | |||
| 21 | -if(WIN32) | ||
| 22 | - set(ocloc_cmd_prefix ocloc) | ||
| 23 | -else() | ||
| 24 | - if(DEFINED NEO__IGC_LIBRARY_PATH) | ||
| 25 | - set(ocloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
| 26 | +if(NOT DEFINED ocloc_cmd_prefix) | ||
| 27 | + if(WIN32) | ||
| 28 | + set(ocloc_cmd_prefix ocloc) | ||
| 29 | else() | ||
| 30 | - set(ocloc_cmd_prefix LD_LIBRARY_PATH=$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
| 31 | + if(DEFINED NEO__IGC_LIBRARY_PATH) | ||
| 32 | + set(ocloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
| 33 | + else() | ||
| 34 | + set(ocloc_cmd_prefix LD_LIBRARY_PATH=$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
| 35 | + endif() | ||
| 36 | endif() | ||
| 37 | endif() | ||
| 38 | -- | ||
| 39 | 2.20.1 | ||
| 40 | |||
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_21.40.21182.bb b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_22.08.22549.bb index bca3c767..faf00757 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_21.40.21182.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime_22.08.22549.bb | |||
| @@ -5,15 +5,17 @@ on OpenCL(TM) compute stacks supporting the GEN graphics hardware \ | |||
| 5 | architecture." | 5 | architecture." |
| 6 | 6 | ||
| 7 | LICENSE = "MIT" | 7 | LICENSE = "MIT" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=983b0c493ea3dc3c21a90ff743bf90e4 \ | 8 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9280143b568466d8fbe385f838078b93 \ |
| 9 | file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b" | 9 | file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b" |
| 10 | 10 | ||
| 11 | SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=master \ | 11 | SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=master \ |
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | SRC_URI:append:class-target = "file://allow-to-find-cpp-generation-tool.patch" | 14 | SRC_URI:append:class-target = "file://allow-to-find-cpp-generation-tool.patch \ |
| 15 | file://external-ocloc.patch \ | ||
| 16 | " | ||
| 15 | 17 | ||
| 16 | SRCREV = "3269e719a3ee7bcd97c50ec2cfe78fc8674adec0" | 18 | SRCREV = "315769424d4b59a29b11ebb4d6418a0ac0a0eeac" |
| 17 | 19 | ||
| 18 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
| 19 | 21 | ||
| @@ -38,7 +40,7 @@ EXTRA_OECMAKE = " \ | |||
| 38 | EXTRA_OECMAKE:append:class-native = " -DNEO_DISABLE_BUILTINS_COMPILATION=ON" | 40 | EXTRA_OECMAKE:append:class-native = " -DNEO_DISABLE_BUILTINS_COMPILATION=ON" |
| 39 | 41 | ||
| 40 | EXTRA_OECMAKE:append:class-target = " \ | 42 | EXTRA_OECMAKE:append:class-target = " \ |
| 41 | -Dcloc_cmd_prefix=ocloc \ | 43 | -Docloc_cmd_prefix=ocloc \ |
| 42 | " | 44 | " |
| 43 | 45 | ||
| 44 | PACKAGECONFIG ??= "" | 46 | PACKAGECONFIG ??= "" |
