diff options
| author | Zoltán Böszörményi <zboszor@gmail.com> | 2025-11-04 13:27:30 +0100 |
|---|---|---|
| committer | Yogesh Tyagi <yogesh.tyagi@intel.com> | 2026-01-01 19:41:38 +0530 |
| commit | 36e44b684cc74e5d3112f7e430e8ef563d69ee92 (patch) | |
| tree | 1039f3ef00423e3c43495b3dedd82dd7a96ea0c9 /recipes-opencl/compute-runtime | |
| parent | 76ba9349533821a3a3526d4e8a19be8589f5cefb (diff) | |
| download | meta-intel-36e44b684cc74e5d3112f7e430e8ef563d69ee92.tar.gz | |
Support whinlatter only
Yocto 5.3 merged most of meta-clang.
Move recipes from dynamic-layers/clang-layer to the toplevel.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Diffstat (limited to 'recipes-opencl/compute-runtime')
3 files changed, 140 insertions, 0 deletions
diff --git a/recipes-opencl/compute-runtime/intel-compute-runtime/0002-Build-not-able-to-locate-cpp_generation_tool.patch b/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/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() | ||
diff --git a/recipes-opencl/compute-runtime/intel-compute-runtime/0003-external-ocloc.patch b/recipes-opencl/compute-runtime/intel-compute-runtime/0003-external-ocloc.patch new file mode 100644 index 00000000..2001d839 --- /dev/null +++ b/recipes-opencl/compute-runtime/intel-compute-runtime/0003-external-ocloc.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 0006db5f55a9f08bd3452558a53704cd3bbb790f 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 3/5] 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 | Index: git/cmake/ocloc_cmd_prefix.cmake | ||
| 14 | =================================================================== | ||
| 15 | --- git.orig/cmake/ocloc_cmd_prefix.cmake | ||
| 16 | +++ git/cmake/ocloc_cmd_prefix.cmake | ||
| 17 | @@ -4,13 +4,15 @@ | ||
| 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 ${CMAKE_COMMAND} -E env "LD_LIBRARY_PATH=${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 ${CMAKE_COMMAND} -E env "LD_LIBRARY_PATH=${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=${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=${LD_LIBRARY_PATH}:$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
| 35 | + endif() | ||
| 36 | endif() | ||
| 37 | endif() | ||
| 38 | |||
diff --git a/recipes-opencl/compute-runtime/intel-compute-runtime_25.13.33276.16.bb b/recipes-opencl/compute-runtime/intel-compute-runtime_25.13.33276.16.bb new file mode 100644 index 00000000..b13daaa8 --- /dev/null +++ b/recipes-opencl/compute-runtime/intel-compute-runtime_25.13.33276.16.bb | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | SUMMARY = "The Intel(R) Graphics Compute Runtime for OpenCL(TM)" | ||
| 2 | DESCRIPTION = "The Intel(R) Graphics Compute Runtime for OpenCL(TM) \ | ||
| 3 | is an open source project to converge Intel's development efforts \ | ||
| 4 | on OpenCL(TM) compute stacks supporting the GEN graphics hardware \ | ||
| 5 | architecture." | ||
| 6 | |||
| 7 | LICENSE = "MIT & Apache-2.0" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eca6ec6997e18db166db7109cdbe611c \ | ||
| 9 | file://third_party/opencl_headers/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=releases/25.13 \ | ||
| 12 | file://0002-Build-not-able-to-locate-cpp_generation_tool.patch \ | ||
| 13 | file://0003-external-ocloc.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRCREV = "a9961bdfaa07250fd52ff930bf8f31fb4e3b7799" | ||
| 17 | |||
| 18 | DEPENDS += " intel-graphics-compiler gmmlib libva qemu-native" | ||
| 19 | |||
| 20 | RDEPENDS:${PN} += " intel-graphics-compiler gmmlib" | ||
| 21 | |||
| 22 | inherit cmake pkgconfig qemu | ||
| 23 | |||
| 24 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 25 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 26 | |||
| 27 | EXTRA_OECMAKE = " \ | ||
| 28 | -DIGC_DIR=${STAGING_INCDIR}/igc \ | ||
| 29 | -DBUILD_TYPE=Release \ | ||
| 30 | -DSKIP_UNIT_TESTS=1 \ | ||
| 31 | -DCCACHE_ALLOWED=FALSE \ | ||
| 32 | -DNEO_DISABLE_LD_LLD=ON \ | ||
| 33 | -DNEO_DISABLE_LD_GOLD=ON \ | ||
| 34 | " | ||
| 35 | |||
| 36 | EXTRA_OECMAKE:append:class-target = " \ | ||
| 37 | -Docloc_cmd_prefix=ocloc \ | ||
| 38 | -DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper \ | ||
| 39 | " | ||
| 40 | |||
| 41 | PACKAGECONFIG ??= "" | ||
| 42 | PACKAGECONFIG[levelzero] = "-DBUILD_WITH_L0=ON, -DBUILD_WITH_L0=OFF, level-zero" | ||
| 43 | |||
| 44 | do_configure:prepend:class-target () { | ||
| 45 | # Write out a qemu wrapper that will be used by cmake. | ||
| 46 | qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${B}/bin'),d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" | ||
| 47 | cat > ${WORKDIR}/qemuwrapper << EOF | ||
| 48 | #!/bin/sh | ||
| 49 | $qemu_binary "\$@" | ||
| 50 | EOF | ||
| 51 | chmod +x ${WORKDIR}/qemuwrapper | ||
| 52 | } | ||
| 53 | |||
| 54 | FILES:${PN} += " \ | ||
| 55 | ${libdir}/intel-opencl/libigdrcl.so \ | ||
| 56 | ${libdir}/libocloc.so \ | ||
| 57 | " | ||
| 58 | |||
| 59 | FILES:${PN}-dev = "${includedir}" | ||
| 60 | |||
| 61 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | ||
