summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/clang-layer
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/clang-layer')
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch68
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch35
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch57
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0004-Fix-QA-Issues.patch30
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/run-ptest30
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch53
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch36
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch52
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest2
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb62
-rw-r--r--dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.29.1.bb164
-rw-r--r--dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb3
-rw-r--r--dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.4.1.bb (renamed from dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.1.0.bb)17
-rw-r--r--dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb3
-rw-r--r--dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb2
15 files changed, 403 insertions, 211 deletions
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch
new file mode 100644
index 00000000..5ae4d543
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch
@@ -0,0 +1,68 @@
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Fri, 7 Feb 2026 00:00:00 +0000
4Subject: [PATCH] superbuild: forward build options to ispc-stage2
5
6Forward the ISPCRT_BUILD_TASK_MODEL, ISPC_PREPARE_PACKAGE,
7ISPC_INCLUDE_EXAMPLES, and ISPC_INCLUDE_TESTS options to the
8ispc-stage2 ExternalProject so that builds can control the
9tasking model, packaging behavior, and disable examples/tests.
10
11Upstream-Status: Pending
12Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
13---
14 superbuild/CMakeLists.txt | 34 ++++++++++++++++++++++++++++------
15 1 file changed, 28 insertions(+), 6 deletions(-)
16
17diff --git a/superbuild/CMakeLists.txt b/superbuild/CMakeLists.txt
18index 048754b7..d2a3e8f9 100644
19--- a/superbuild/CMakeLists.txt
20+++ b/superbuild/CMakeLists.txt
21@@ -789,6 +789,30 @@ if (APPLE)
22 )
23 endif()
24 endif()
25+# Forward ISPCRT_BUILD_TASK_MODEL if explicitly set
26+if (DEFINED ISPCRT_BUILD_TASK_MODEL)
27+ list(APPEND ISPC_COMMON_CMAKE_ARGS
28+ -DISPCRT_BUILD_TASK_MODEL=${ISPCRT_BUILD_TASK_MODEL}
29+ )
30+endif()
31+# Forward ISPC_PREPARE_PACKAGE if explicitly set
32+if (DEFINED ISPC_PREPARE_PACKAGE)
33+ list(APPEND ISPC_COMMON_CMAKE_ARGS
34+ -DISPC_PREPARE_PACKAGE=${ISPC_PREPARE_PACKAGE}
35+ )
36+endif()
37+# Forward ISPC_INCLUDE_EXAMPLES if explicitly set
38+if (DEFINED ISPC_INCLUDE_EXAMPLES)
39+ list(APPEND ISPC_COMMON_CMAKE_ARGS
40+ -DISPC_INCLUDE_EXAMPLES=${ISPC_INCLUDE_EXAMPLES}
41+ )
42+endif()
43+# Forward ISPC_INCLUDE_TESTS if explicitly set
44+if (DEFINED ISPC_INCLUDE_TESTS)
45+ list(APPEND ISPC_COMMON_CMAKE_ARGS
46+ -DISPC_INCLUDE_TESTS=${ISPC_INCLUDE_TESTS}
47+ )
48+endif()
49
50 list(APPEND ISPC_STAGE2_CMAKE_ARGS
51 ${ISPC_COMMON_CMAKE_ARGS}
52@@ -856,8 +880,12 @@ else()
53 )
54 endif()
55
56-list(APPEND ISPC_STAGE2_CMAKE_TARGETS install package)
57-if (NOT ISPC_PACKAGE_EXAMPLES)
58+list(APPEND ISPC_STAGE2_CMAKE_TARGETS install)
59+# Only add package targets if packaging is enabled
60+if (ISPC_PREPARE_PACKAGE)
61+ list(APPEND ISPC_STAGE2_CMAKE_TARGETS package)
62+endif()
63+if (ISPC_PREPARE_PACKAGE AND NOT ISPC_PACKAGE_EXAMPLES)
64 list(APPEND ISPC_STAGE2_CMAKE_TARGETS
65 package-examples
66 )
67--
682.43.0
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch
new file mode 100644
index 00000000..52c71f03
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch
@@ -0,0 +1,35 @@
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Tue, 11 Feb 2026 22:00:00 +0000
4Subject: [PATCH] llvm: update CMake policy CMP0116 to NEW
5
6Update CMake policy CMP0116 from OLD to NEW to avoid deprecation
7warnings. CMP0116 controls how Ninja generators transform DEPFILE
8from add_custom_command(). The NEW behavior is the standard behavior
9and should be used going forward.
10
11CMake Deprecation Warning:
12 The OLD behavior for policy CMP0116 will be removed from a future
13 version of CMake. Projects should be ported to the NEW behavior.
14
15Upstream-Status: Pending
16Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
17---
18 cmake/Modules/CMakePolicy.cmake | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/cmake/Modules/CMakePolicy.cmake b/cmake/Modules/CMakePolicy.cmake
22index 1234567890..abcdef1234 100644
23--- a/cmake/Modules/CMakePolicy.cmake
24+++ b/cmake/Modules/CMakePolicy.cmake
25@@ -3,7 +3,7 @@
26 # CMP0116: Ninja generators transform `DEPFILE`s from `add_custom_command()`
27 # New in CMake 3.20. https://cmake.org/cmake/help/latest/policy/CMP0116.html
28 if(POLICY CMP0116)
29- cmake_policy(SET CMP0116 OLD)
30+ cmake_policy(SET CMP0116 NEW)
31 endif()
32
33 # MSVC debug information format flags are selected via
34--
352.34.1
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch
new file mode 100644
index 00000000..a06ec6dd
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch
@@ -0,0 +1,57 @@
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Thu, 12 Feb 2026 10:30:00 +0800
4Subject: [PATCH] GenerateBuiltins: Fix header paths for builtin compilation
5
6When using --target=x86_64-unknown-unknown, clang doesn't know where
7to find system headers like bits/libc-header-start.h. Add explicit
8-isystem paths to the builtin compilation commands to fix header
9resolution.
10
11For native builds, using the build host's sysroot is appropriate since
12the builtins are compiled to LLVM IR during the build process.
13
14Note: ispc 1.29.1 has restructured the build system and no longer uses
15explicit 32/64-bit foreach loops, so the old 32-bit exclusion patch is
16not needed.
17
18Upstream-Status: Inappropriate [OE-specific]
19Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
20---
21 cmake/GenerateBuiltins.cmake | 12 +++++++++++-
22 1 file changed, 11 insertions(+), 1 deletion(-)
23
24diff --git a/cmake/GenerateBuiltins.cmake b/cmake/GenerateBuiltins.cmake
25index e20d79b8..6c8a9f0e 100644
26--- a/cmake/GenerateBuiltins.cmake
27+++ b/cmake/GenerateBuiltins.cmake
28@@ -112,6 +112,17 @@ function(generate_dispatcher os)
29
30 write_dispatch_bitcode_lib(${name} ${os})
31
32+ # Detect multiarch tuple for system headers
33+ execute_process(
34+ COMMAND ${CMAKE_C_COMPILER} -print-multiarch
35+ OUTPUT_VARIABLE MULTIARCH_TUPLE
36+ OUTPUT_STRIP_TRAILING_WHITESPACE
37+ ERROR_QUIET
38+ )
39+ if(NOT MULTIARCH_TUPLE)
40+ set(MULTIARCH_TUPLE "x86_64-linux-gnu")
41+ endif()
42+
43 set(EXTRA_OPTS "")
44 if (NOT WIN32)
45 set(EXTRA_OPTS "-fPIC")
46@@ -119,7 +130,7 @@ function(generate_dispatcher os)
47
48 add_custom_command(
49 OUTPUT ${bc}
50- COMMAND ${CLANGPP_EXECUTABLE} -x c ${DISP_TYPE} -I${CMAKE_SOURCE_DIR}/src ${EXTRA_OPTS} --target=x86_64-unknown-unknown -march=core2 -mtune=generic -O2 -emit-llvm ${input} -c -o ${bc}
51+ COMMAND ${CLANGPP_EXECUTABLE} -x c ${DISP_TYPE} -I${CMAKE_SOURCE_DIR}/src ${EXTRA_OPTS} --target=x86_64-unknown-unknown -isystem /usr/include -isystem /usr/include/${MULTIARCH_TUPLE} -march=core2 -mtune=generic -O2 -emit-llvm ${input} -c -o ${bc}
52 DEPENDS ${input} ${CMAKE_SOURCE_DIR}/src/isa.h
53 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
54 )
55--
562.34.1
57
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0004-Fix-QA-Issues.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0004-Fix-QA-Issues.patch
new file mode 100644
index 00000000..c00fc3f7
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/0004-Fix-QA-Issues.patch
@@ -0,0 +1,30 @@
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Wed, 12 Feb 2026 23:00:00 +0800
4Subject: [PATCH] Fix QA Issues
5
6Stop ispc from inserting host file path in generated headers
7which leads to reproducibility problems.
8
9Upstream-Status: Inappropriate [OE build specific]
10
11Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
12---
13 src/header.cpp | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/header.cpp b/src/header.cpp
17index e2084d2e..e2626865 100644
18--- a/src/header.cpp
19+++ b/src/header.cpp
20@@ -942,7 +942,7 @@ bool Module::writeHeader() {
21 return false;
22 }
23
24- fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", output.header.c_str());
25+ fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n");
26 fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n");
27
28 writeHeader(f);
29--
302.34.1
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/run-ptest b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/run-ptest
new file mode 100644
index 00000000..598172d9
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc-1.29.1/run-ptest
@@ -0,0 +1,30 @@
1#!/bin/bash
2
3# Run ispc tests using the test suite
4cd /usr/lib/ispc/ptest
5
6# Run the test suite with minimal and fast tests
7python3 run_tests.py --target=sse2-i32x4 --verbose --compiler=g++ 2>&1 | \
8while IFS= read -r line; do
9 case "$line" in
10 *"PASSED"*|*passed*)
11 echo "PASS: ${line}"
12 ;;
13 *"FAILED"*|*failed*|*ERROR*)
14 echo "FAIL: ${line}"
15 ;;
16 *)
17 echo "$line"
18 ;;
19 esac
20done
21
22# Check exit status
23exit_code=${PIPESTATUS[0]}
24if [ $exit_code -eq 0 ]; then
25 echo "PASS: ispc test suite completed"
26else
27 echo "FAIL: ispc test suite failed with exit code $exit_code"
28fi
29
30exit $exit_code
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch
deleted file mode 100644
index 4d583657..00000000
--- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From deccc0c69c2c8759c52885be8bdda54d3cee481c Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Sun, 11 Dec 2022 22:34:15 +0800
4Subject: [PATCH] Add print function to print test run status in ptest format
5
6Upstream-Status: Inappropriate [OE ptest specific]
7
8Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
9---
10 run_tests.py | 16 ++++++++++++++++
11 1 file changed, 16 insertions(+)
12
13diff --git a/run_tests.py b/run_tests.py
14index 1cd796dd..e3ffd1ab 100755
15--- a/run_tests.py
16+++ b/run_tests.py
17@@ -327,6 +327,9 @@ def run_test(testname, host, target):
18 else:
19 ispc_exe_rel = add_prefix(host.ispc_cmd, host, target)
20
21+ # to reslove the error '.rodata' can not be used when making a PIE object
22+ ispc_exe_rel = ispc_exe_rel + " --pic"
23+
24 # is this a test to make sure an error is issued?
25 want_error = (filename.find("tests_errors") != -1)
26 if want_error == True:
27@@ -795,6 +798,17 @@ def check_compiler_exists(compiler_exe):
28 return
29 error("missing the required compiler: %s \n" % compiler_exe, 1)
30
31+def print_test_run_status(results):
32+ for fstatus in results:
33+ if (fstatus[1] == Status.Success):
34+ print( "%s: %s" % ("PASS", fstatus[0]))
35+ elif (fstatus[1] == Status.Compfail):
36+ print( "%s: %s" % ("FAIL", fstatus[0]))
37+ elif (fstatus[1] == Status.Runfail):
38+ print( "%s: %s" % ("FAIL", fstatus[0]))
39+ elif (fstatus[1] == Status.Skip):
40+ print( "%s: %s" % ("SKIP", fstatus[0]))
41+
42 def print_result(status, results, s, run_tests_log, csv):
43 title = StatusStr[status]
44 file_list = [fname for fname, fstatus in results if status == fstatus]
45@@ -938,6 +952,8 @@ def run_tests(options1, args, print_version):
46 pass_rate = -1
47 print_debug("PASSRATE (%d/%d) = %d%% \n\n" % (len(run_succeed_files), total_tests_executed, pass_rate), s, run_tests_log)
48
49+ print_test_run_status(results)
50+
51 for status in Status:
52 print_result(status, results, s, run_tests_log, options.csv)
53 fails = [status != Status.Compfail and status != Status.Runfail for _, status in results]
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch
deleted file mode 100644
index b0a76ff9..00000000
--- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From 7beff95c11071170eb27b6fa7d0cc77588caee8e Mon Sep 17 00:00:00 2001
2From: Yogesh Tyagi <yogesh.tyagi@intel.com>
3Date: Tue, 26 Jul 2022 15:25:10 +0800
4Subject: [PATCH] Fix QA Issues
5
6Stop ispc from inserting host file path in generated headers which leads to reproducibility problems.
7
8Upstream-Status: Inappropriate [OE build specific]
9
10Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
11---
12 src/module.cpp | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/src/module.cpp b/src/module.cpp
16index e2084d2e..e2626865 100644
17--- a/src/module.cpp
18+++ b/src/module.cpp
19@@ -2555,7 +2555,7 @@ bool Module::writeHeader(const char *fn) {
20 perror("fopen");
21 return false;
22 }
23- fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", fn);
24+ fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n");
25 fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n");
26
27 // Create a nice guard string from the filename, turning any
28@@ -2677,7 +2677,7 @@ bool Module::writeDispatchHeader(DispatchHeaderInfo *DHI) {
29 FILE *f = DHI->file;
30
31 if (DHI->EmitFrontMatter) {
32- fprintf(f, "//\n// %s\n// (Header automatically generated by the ispc compiler.)\n", DHI->fn);
33+ fprintf(f, "//\n// \n// (Header automatically generated by the ispc compiler.)\n");
34 fprintf(f, "// DO NOT EDIT THIS FILE.\n//\n\n");
35 }
36 // Create a nice guard string from the filename, turning any
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch
deleted file mode 100644
index f452dc50..00000000
--- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch
+++ /dev/null
@@ -1,52 +0,0 @@
1From 16a2c22339287122d2c25d8bb33a5a51b4e6ee51 Mon Sep 17 00:00:00 2001
2From: Naveen Saini <naveen.kumar.saini@intel.com>
3Date: Thu, 24 Feb 2022 20:01:11 +0530
4Subject: [PATCH] cmake: don't build for 32-bit targets
5
6Error log:
7| tmp/work/corei7-64-poky-linux/ispc/1.16.0-r0/recipe-sysroot/usr/include/bits/long-double.h:23:10: fatal error: 'bits/long-double-32.h' file not found
8| #include <bits/long-double-32.h>
9| ^~~~~~~~~~~~~~~~~~~~~~~
10| 1 error generated.
11
12Remove SYSTEM include search path and set -isysroot dir path
13for root dir for cross compilation.
14
15Upstream-Status: Inappropriate
16
17Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
18---
19 cmake/GenerateBuiltins.cmake | 6 +++---
20 1 file changed, 3 insertions(+), 3 deletions(-)
21
22diff --git a/cmake/GenerateBuiltins.cmake b/cmake/GenerateBuiltins.cmake
23index f84494ed..d90cb1ec 100644
24--- a/cmake/GenerateBuiltins.cmake
25+++ b/cmake/GenerateBuiltins.cmake
26@@ -253,7 +253,7 @@ function(builtin_to_cpp bit os_name arch supported_archs supported_oses resultFi
27 # In this case headers will be installed in /usr/arm-linux-gnueabihf/include and will not be picked up
28 # by clang by default. So the following line adds such path explicitly. If this path doesn't exist and
29 # the headers can be found in other locations, this should not be a problem.
30- set(includePath -isystem/usr/${debian_triple}/include)
31+ set(includePath -isysroot${SYSROOT_DIR})
32 endif()
33 endif()
34
35@@ -339,7 +339,7 @@ function (generate_target_builtins resultList)
36 set(regular_targets ${ARGN})
37 list(FILTER regular_targets EXCLUDE REGEX wasm)
38 foreach (ispc_target ${regular_targets})
39- foreach (bit 32 64)
40+ foreach (bit 64)
41 foreach (os_name ${TARGET_OS_LIST_FOR_LL})
42 target_ll_to_cpp(target-${ispc_target} ${bit} ${os_name} output${os_name}${bit})
43 list(APPEND tmpList ${output${os_name}${bit}})
44@@ -405,7 +405,7 @@ function (generate_common_builtins resultList)
45 endif()
46
47 message (STATUS "ISPC will be built with support of ${supported_oses} for ${supported_archs}")
48- foreach (bit 32 64)
49+ foreach (bit 64)
50 foreach (os_name "windows" "linux" "freebsd" "macos" "android" "ios" "ps4" "web")
51 foreach (arch "x86" "arm" "wasm")
52 builtin_to_cpp(${bit} ${os_name} ${arch} "${supported_archs}" "${supported_oses}" res${bit}${os_name}${arch})
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest
deleted file mode 100644
index 77d13bb4..00000000
--- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest
+++ /dev/null
@@ -1,2 +0,0 @@
1#!/bin/sh
2python3 run_tests.py
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb
deleted file mode 100644
index f40e445c..00000000
--- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb
+++ /dev/null
@@ -1,62 +0,0 @@
1SUMMARY = "Intel(R) Implicit SPMD Program Compiler"
2DESCRIPTION = "ispc is a compiler for a variant of the C programming language, \
3with extensions for single program, multiple data programming."
4HOMEPAGE = "https://github.com/ispc/ispc"
5
6LICENSE = "BSD-3-Clause & Apache-2.0-with-LLVM-exception"
7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=da5ecffdd210b3cf776b32b41c182e87 \
8 file://third-party-programs.txt;md5=2061218c7be521556719c8b504bf9ddd"
9
10inherit cmake python3native ptest
11
12SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;branch=main \
13 file://0002-cmake-don-t-build-for-32-bit-targets.patch \
14 file://0001-Fix-QA-Issues.patch \
15 file://0001-Add-print-function-to-print-test-run-status-in-ptest.patch \
16 file://run-ptest \
17 "
18
19SRCREV = "d394222aef59e4759b06e39ec160e4aba6ee5f40"
20
21COMPATIBLE_HOST = '(x86_64).*-linux'
22
23DEPENDS += " clang-native bison-native flex-native"
24DEPENDS:append:class-target = " clang"
25RDEPENDS:${PN}-ptest += " python3-multiprocessing"
26
27PACKAGECONFIG ??= "tbb"
28PACKAGECONFIG[tbb] = "-DISPCRT_BUILD_TASK_MODEL=TBB, -DISPCRT_BUILD_TASK_MODEL=OpenMP, tbb"
29
30YFLAGS = '-d -t -v -y --file-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}'
31
32do_configure:prepend() {
33 sed -i -e 's#\${BISON_EXECUTABLE}.*#\${BISON_EXECUTABLE} ${YFLAGS} #g' ${S}/CMakeLists.txt
34 sed -i -e 's#\${FLEX_EXECUTABLE}.*#\${FLEX_EXECUTABLE} \-L #g' ${S}/CMakeLists.txt
35}
36
37do_install_ptest() {
38 cp -rf ${S}/run_tests.py ${D}${PTEST_PATH}
39 cp -rf ${S}/common.py ${D}${PTEST_PATH}
40 cp -rf ${S}/tests ${D}${PTEST_PATH}
41 cp -rf ${S}/test_static.isph ${D}${PTEST_PATH}
42 cp -rf ${S}/fail_db.txt ${D}${PTEST_PATH}
43 cp -rf ${S}/test_static.cpp ${D}${PTEST_PATH}
44}
45
46EXTRA_OECMAKE += " \
47 -DISPC_INCLUDE_TESTS=OFF \
48 -DISPC_INCLUDE_EXAMPLES=OFF \
49 -DARM_ENABLED=OFF \
50 -DISPC_CROSS=ON \
51 -DISPC_ANDROID_TARGET=OFF \
52 -DISPC_FREEBSD_TARGET=OFF \
53 -DISPC_WINDOWS_TARGET=OFF \
54 -DISPC_IOS_TARGET=OFF \
55 -DISPC_PS_TARGET=OFF \
56 -DSYSROOT_DIR=${STAGING_DIR} \
57 -DCLANG_EXECUTABLE=${STAGING_BINDIR_NATIVE}/clang \
58 -DCLANGPP_EXECUTABLE=${STAGING_BINDIR_NATIVE}/clang++ \
59 -DLLVM_AS_EXECUTABLE=${STAGING_BINDIR_NATIVE}/llvm-as \
60 "
61
62BBCLASSEXTEND = "native nativesdk"
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.29.1.bb b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.29.1.bb
new file mode 100644
index 00000000..ed36df43
--- /dev/null
+++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.29.1.bb
@@ -0,0 +1,164 @@
1SUMMARY = "Intel(R) Implicit SPMD Program Compiler"
2DESCRIPTION = "ispc is a compiler for a variant of the C programming language, \
3with extensions for single program, multiple data programming."
4HOMEPAGE = "https://github.com/ispc/ispc"
5
6LICENSE = "BSD-3-Clause & Apache-2.0-with-LLVM-exception"
7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=da5ecffdd210b3cf776b32b41c182e87 \
8 file://third-party-programs.txt;md5=853c6beec84e8f9b2b56d7ad9ad7a424"
9
10inherit cmake python3native ptest
11
12# Main ispc source
13SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;nobranch=1;name=ispc;destsuffix=git/ispc \
14 file://0001-superbuild-forward-ISPCRT_BUILD_TASK_MODEL.patch \
15 file://0003-GenerateBuiltins-Add-sysroot-for-builtin-compilation.patch;patchdir=${UNPACKDIR}/git/ispc \
16 file://0004-Fix-QA-Issues.patch;patchdir=${UNPACKDIR}/git/ispc \
17 file://run-ptest \
18 "
19
20# Bundled LLVM 20.1 and dependencies for superbuild
21SRC_URI += "git://github.com/llvm/llvm-project.git;protocol=https;nobranch=1;name=llvm;destsuffix=git/llvm-project \
22 git://github.com/intel/vc-intrinsics.git;protocol=https;nobranch=1;name=vc;destsuffix=git/vc-intrinsics \
23 git://github.com/KhronosGroup/SPIRV-LLVM-Translator.git;protocol=https;nobranch=1;name=spirv;destsuffix=git/SPIRV-LLVM-Translator \
24 file://0002-llvm-update-CMake-policy-CMP0116-to-NEW.patch;patchdir=${UNPACKDIR}/git/llvm-project \
25 "
26
27SRCREV_ispc = "dba3a5196219f2419da2dabbd863870c46cddd80"
28SRCREV_llvm = "87f0227cb60147a26a1eeb4fb06e3b505e9c7261"
29SRCREV_vc = "b16218b8a00c5c1d4db32085dfab4d5eb9a03ad7"
30SRCREV_spirv = "d1c69c3365dffed67124eb1692cb941cbae5bb2e"
31
32SRCREV_FORMAT = "ispc_llvm_vc_spirv"
33
34S = "${UNPACKDIR}/git/ispc"
35
36COMPATIBLE_HOST = '(x86_64).*-linux'
37
38# Skip QA check for file-rdeps since superbuild stage2 links against build host libraries
39# This is acceptable for a build tool that runs on the build host
40# Skip buildpaths since LLVM 20.1 stage2 build embeds debug paths in binaries
41INSANE_SKIP:${PN} += "file-rdeps buildpaths"
42INSANE_SKIP:${PN}-dbg += "buildpaths"
43
44# Only need native tools for building, LLVM 20.1 is bundled
45# ncurses needed for libedit (LLVM dependency)
46DEPENDS = "bison-native flex-native ninja-native ncurses"
47RDEPENDS:${PN}-ptest += "bash python3-multiprocessing"
48
49PACKAGECONFIG ??= ""
50# Default to Threads tasking model; override with TBB if enabled
51PACKAGECONFIG[tbb] = "-DISPCRT_BUILD_TASK_MODEL=TBB, , tbb"
52
53do_compile:prepend() {
54 # Clean OE-specific flags from toolchain files for bundled LLVM build
55 for toolchain in stage1-toolchain.cmake stage2-toolchain.cmake; do
56 [ -f ${B}/${toolchain} ] || continue
57 sed -i -e 's|set(CMAKE_C\(XX\)\?_FLAGS.*|set(CMAKE_C\1_FLAGS "")|g' \
58 -e 's|set(CMAKE_\(EXE\|SHARED\|MODULE\)_LINKER_FLAGS.*|set(CMAKE_\1_LINKER_FLAGS "")|g' \
59 ${B}/${toolchain}
60 done
61
62 # Use native compilers for stage1
63 [ -f ${B}/stage1-toolchain.cmake ] && sed -i \
64 -e "s|set(CMAKE_C_COMPILER cc)|set(CMAKE_C_COMPILER ${BUILD_CC})|" \
65 -e "s|set(CMAKE_CXX_COMPILER c++)|set(CMAKE_CXX_COMPILER ${BUILD_CXX})|" \
66 ${B}/stage1-toolchain.cmake && \
67 echo "set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)" >> ${B}/stage1-toolchain.cmake
68}
69
70
71
72# Use superbuild with bundled LLVM 20.1
73OECMAKE_SOURCEPATH = "${S}/superbuild"
74
75EXTRA_OECMAKE += " \
76 --preset os \
77 -G Ninja \
78 -DLLVM_VERSION=20.1 \
79 -DLLVM_DISABLE_ASSERTIONS=ON \
80 -DLLVM_URL=${UNPACKDIR}/git/llvm-project \
81 -DVC_INTRINSICS_URL=${UNPACKDIR}/git/vc-intrinsics \
82 -DVC_INTRINSICS_SHA=${SRCREV_vc} \
83 -DSPIRV_TRANSLATOR_URL=${UNPACKDIR}/git/SPIRV-LLVM-Translator \
84 -DSPIRV_TRANSLATOR_SHA=${SRCREV_spirv} \
85 -DSPIRV_TRANSLATOR_BRANCH=llvm_release_201 \
86 -DISPC_CORPUS_URL=null \
87 -DISPC_CROSS=ON \
88 -DISPCRT_BUILD_TASK_MODEL=Threads \
89 -DISPC_INCLUDE_TESTS=OFF \
90 -DISPC_INCLUDE_EXAMPLES=OFF \
91 -DISPC_INCLUDE_RT=OFF \
92 -DISPC_INCLUDE_DPCPP=OFF \
93 -DISPC_PREPARE_PACKAGE=OFF \
94 -DARM_ENABLED=OFF \
95 -DISPC_ANDROID_TARGET=OFF \
96 -DISPC_FREEBSD_TARGET=OFF \
97 -DISPC_WINDOWS_TARGET=OFF \
98 -DISPC_IOS_TARGET=OFF \
99 -DISPC_PS_TARGET=OFF \
100 -DXE_DEPS=OFF \
101 "
102
103do_compile() {
104 # Unset OE-specific flags for stage1 LLVM build
105 export CFLAGS_FOR_BUILD=""
106 export CXXFLAGS_FOR_BUILD=""
107 export LDFLAGS_FOR_BUILD=""
108
109 bbnote "Building ispc with bundled LLVM 20.1"
110 cmake --build "${B}" --target all -- ${EXTRA_OECMAKEBUILD}
111}
112
113# Superbuild installs ispc to build/ispc-stage2 instead of ${D}
114do_install() {
115 install -d ${D}${bindir}
116 install -m 0755 ${B}/ispc-stage2/bin/ispc ${D}${bindir}/
117 install -m 0755 ${B}/ispc-stage2/bin/check_isa ${D}${bindir}/
118}
119
120do_install:append:class-target() {
121 # Install tests for gio validation (ispc-test package)
122 install -d ${D}${libdir}/ispc/gio
123 install -m 0755 ${S}/scripts/run_tests.py ${D}${libdir}/ispc/gio/
124 install -m 0644 ${S}/scripts/common.py ${D}${libdir}/ispc/gio/
125 cp -r ${S}/tests ${D}${libdir}/ispc/gio/
126 cp ${S}/test_static.isph ${D}${libdir}/ispc/gio/ || true
127 cp ${S}/fail_db.txt ${D}${libdir}/ispc/gio/ || true
128 cp ${S}/test_static.cpp ${D}${libdir}/ispc/gio/ || true
129}
130
131do_install_ptest:class-target() {
132 install -d ${D}${PTEST_PATH}
133 install -m 0755 ${S}/scripts/run_tests.py ${D}${PTEST_PATH}/
134 install -m 0644 ${S}/scripts/common.py ${D}${PTEST_PATH}/
135 cp -r ${S}/tests ${D}${PTEST_PATH}/
136 cp ${S}/test_static.isph ${D}${PTEST_PATH}/ || true
137 cp ${S}/fail_db.txt ${D}${PTEST_PATH}/ || true
138 cp ${S}/test_static.cpp ${D}${PTEST_PATH}/ || true
139}
140
141PACKAGES:prepend:class-target = "${PN}-test "
142FILES:${PN}-test:class-target = "${libdir}/ispc/gio/*"
143RDEPENDS:${PN}-test:class-target += "bash python3-multiprocessing ${PN}"
144
145pkg_postinst:${PN}() {
146 #!/bin/sh
147 # Create /lib64 symlink if it doesn't exist (needed for ispc binary built with /lib64 interpreter path)
148 if [ -z "$D" ]; then
149 # Runtime installation
150 if [ ! -e /lib64/ld-linux-x86-64.so.2 ] && [ -e /lib/ld-linux-x86-64.so.2 ]; then
151 mkdir -p /lib64
152 ln -sf /lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
153 fi
154 else
155 # Image creation time
156 if [ ! -e $D/lib64/ld-linux-x86-64.so.2 ] && [ -e $D/lib/ld-linux-x86-64.so.2 ]; then
157 mkdir -p $D/lib64
158 ln -sf /lib/ld-linux-x86-64.so.2 $D/lib64/ld-linux-x86-64.so.2
159 fi
160 fi
161}
162
163# ISPC compiler - also available as native/nativesdk for build-time use
164BBCLASSEXTEND = "native nativesdk"
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb b/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb
index ebd45c60..b633bc49 100644
--- a/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb
+++ b/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.4.0.bb
@@ -11,6 +11,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \
11 11
12inherit pkgconfig cmake 12inherit pkgconfig cmake
13 13
14# ISPC generates binaries with embedded build paths
15INSANE_SKIP:${PN}-dbg += "buildpaths"
16
14SRC_URI = "git://github.com/embree/embree.git;protocol=https;branch=master" 17SRC_URI = "git://github.com/embree/embree.git;protocol=https;branch=master"
15SRCREV = "ff9381774dc99fea81a932ad276677aad6a3d4dd" 18SRCREV = "ff9381774dc99fea81a932ad276677aad6a3d4dd"
16 19
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.1.0.bb b/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.4.1.bb
index 8005f544..4a8b81a7 100644
--- a/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.1.0.bb
+++ b/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.4.1.bb
@@ -7,21 +7,26 @@ HOMEPAGE = "https://www.openimagedenoise.org/"
7 7
8LICENSE = "Apache-2.0 & BSD-3-Clause" 8LICENSE = "Apache-2.0 & BSD-3-Clause"
9LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ 9LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \
10 file://external/mkl-dnn/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ 10 file://external/cutlass/LICENSE.txt;md5=ce85e3722fa981b4aef41101c60ed4a4 \
11 file://external/mkl-dnn/src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ 11 file://external/composable_kernel/LICENSE;md5=2049c7351121e693518087ea93a76da2 \
12 file://external/mkl-dnn/src/common/ittnotify/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \
13 file://weights/LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" 12 file://weights/LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
14 13
15SRC_URI = "https://github.com/OpenImageDenoise/${BPN}/releases/download/v${PV}/${BP}.src.tar.gz\ 14SRC_URI = "https://github.com/RenderKit/${BPN}/releases/download/v${PV}/${BPN}-${PV}.src.tar.gz\
16 " 15 "
17SRC_URI[sha256sum] = "ce144ba582ff36563d9442ee07fa2a4d249bc85aa93e5b25fc527ff4ee755ed6" 16SRC_URI[sha256sum] = "9c7c77ae0d57e004479cddb7aaafd405c2cc745153bed4805413c21be610e17b"
17
18S = "${UNPACKDIR}/${BPN}-${PV}"
18 19
19inherit cmake 20inherit cmake
20 21
22# ISPC generates headers with embedded build paths
23INSANE_SKIP:${PN}-src += "buildpaths"
24INSANE_SKIP:${PN}-dbg += "buildpaths"
25
21DEPENDS += "tbb ispc-native" 26DEPENDS += "tbb ispc-native"
22 27
23do_install:append() { 28do_install:append() {
24 chrpath -d ${D}${bindir}/* ${D}${libdir}/*${SOLIBS} 29 chrpath -d ${D}${bindir}/* ${D}${libdir}/*${SOLIBS}
25} 30}
26 31
27UPSTREAM_CHECK_URI = "https://github.com/OpenImageDenoise/oidn/releases" 32UPSTREAM_CHECK_URI = "https://github.com/RenderKit/oidn/releases"
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb b/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb
index b458bb4d..efd15d9f 100644
--- a/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb
+++ b/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb
@@ -40,3 +40,6 @@ PACKAGES =+ "${PN}-examples"
40FILES:${PN}-examples = "\ 40FILES:${PN}-examples = "\
41 ${bindir} \ 41 ${bindir} \
42 " 42 "
43
44INSANE_SKIP:${PN}-src += "buildpaths"
45INSANE_SKIP:${PN}-dbg += "buildpaths" \ No newline at end of file
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb b/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb
index dc8f7335..99af9010 100644
--- a/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb
+++ b/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb
@@ -36,4 +36,6 @@ FILES:${PN}-apps = "\
36 ${bindir} \ 36 ${bindir} \
37 " 37 "
38 38
39INSANE_SKIP:${PN}-src += "buildpaths"
40INSANE_SKIP:${PN}-dbg += "buildpaths"
39UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" 41UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$"