diff options
Diffstat (limited to 'dynamic-layers/clang-layer')
16 files changed, 647 insertions, 0 deletions
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 new file mode 100644 index 00000000..4d583657 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Add-print-function-to-print-test-run-status-in-ptest.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | From deccc0c69c2c8759c52885be8bdda54d3cee481c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Sun, 11 Dec 2022 22:34:15 +0800 | ||
| 4 | Subject: [PATCH] Add print function to print test run status in ptest format | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [OE ptest specific] | ||
| 7 | |||
| 8 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 9 | --- | ||
| 10 | run_tests.py | 16 ++++++++++++++++ | ||
| 11 | 1 file changed, 16 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/run_tests.py b/run_tests.py | ||
| 14 | index 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 new file mode 100644 index 00000000..b0a76ff9 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-QA-Issues.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 7beff95c11071170eb27b6fa7d0cc77588caee8e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Tue, 26 Jul 2022 15:25:10 +0800 | ||
| 4 | Subject: [PATCH] Fix QA Issues | ||
| 5 | |||
| 6 | Stop ispc from inserting host file path in generated headers which leads to reproducibility problems. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [OE build specific] | ||
| 9 | |||
| 10 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 11 | --- | ||
| 12 | src/module.cpp | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/src/module.cpp b/src/module.cpp | ||
| 16 | index 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 new file mode 100644 index 00000000..f452dc50 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0002-cmake-don-t-build-for-32-bit-targets.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From 16a2c22339287122d2c25d8bb33a5a51b4e6ee51 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 3 | Date: Thu, 24 Feb 2022 20:01:11 +0530 | ||
| 4 | Subject: [PATCH] cmake: don't build for 32-bit targets | ||
| 5 | |||
| 6 | Error 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 | |||
| 12 | Remove SYSTEM include search path and set -isysroot dir path | ||
| 13 | for root dir for cross compilation. | ||
| 14 | |||
| 15 | Upstream-Status: Inappropriate | ||
| 16 | |||
| 17 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 18 | --- | ||
| 19 | cmake/GenerateBuiltins.cmake | 6 +++--- | ||
| 20 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/cmake/GenerateBuiltins.cmake b/cmake/GenerateBuiltins.cmake | ||
| 23 | index 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 new file mode 100644 index 00000000..77d13bb4 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/run-ptest | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | python3 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 new file mode 100644 index 00000000..f40e445c --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.24.0.bb | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | SUMMARY = "Intel(R) Implicit SPMD Program Compiler" | ||
| 2 | DESCRIPTION = "ispc is a compiler for a variant of the C programming language, \ | ||
| 3 | with extensions for single program, multiple data programming." | ||
| 4 | HOMEPAGE = "https://github.com/ispc/ispc" | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause & Apache-2.0-with-LLVM-exception" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=da5ecffdd210b3cf776b32b41c182e87 \ | ||
| 8 | file://third-party-programs.txt;md5=2061218c7be521556719c8b504bf9ddd" | ||
| 9 | |||
| 10 | inherit cmake python3native ptest | ||
| 11 | |||
| 12 | SRC_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 | |||
| 19 | SRCREV = "d394222aef59e4759b06e39ec160e4aba6ee5f40" | ||
| 20 | |||
| 21 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 22 | |||
| 23 | DEPENDS += " clang-native bison-native flex-native" | ||
| 24 | DEPENDS:append:class-target = " clang" | ||
| 25 | RDEPENDS:${PN}-ptest += " python3-multiprocessing" | ||
| 26 | |||
| 27 | PACKAGECONFIG ??= "tbb" | ||
| 28 | PACKAGECONFIG[tbb] = "-DISPCRT_BUILD_TASK_MODEL=TBB, -DISPCRT_BUILD_TASK_MODEL=OpenMP, tbb" | ||
| 29 | |||
| 30 | YFLAGS = '-d -t -v -y --file-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}' | ||
| 31 | |||
| 32 | do_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 | |||
| 37 | do_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 | |||
| 46 | EXTRA_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 | |||
| 62 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/dpcpp-compiler/intel-oneapi-dpcpp-cpp-runtime_2024.0.0-49819.bb b/dynamic-layers/clang-layer/recipes-oneapi/dpcpp-compiler/intel-oneapi-dpcpp-cpp-runtime_2024.0.0-49819.bb new file mode 100644 index 00000000..106b3ad5 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/dpcpp-compiler/intel-oneapi-dpcpp-cpp-runtime_2024.0.0-49819.bb | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | SUMMARY = "Intel® oneAPI DPC++/C++ Compiler runtime files" | ||
| 2 | DESCRIPTION = "The Intel® oneAPI DPC++/C++ Compiler provides optimizations \ | ||
| 3 | that help your applications run faster on Intel® 64 architectures with support \ | ||
| 4 | for the latest C, C++, and SYCL language standards. This compiler produces \ | ||
| 5 | optimized code that can run significantly faster by taking advantage of the \ | ||
| 6 | ever-increasing core count and vector register width in Intel® Xeon® processors \ | ||
| 7 | and compatible processors." | ||
| 8 | |||
| 9 | HOMEPAGE = "https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler.html" | ||
| 10 | |||
| 11 | LICENSE = "EULA" | ||
| 12 | |||
| 13 | COMPILERMAINVER = "2024.0" | ||
| 14 | |||
| 15 | LIC_FILES_CHKSUM = " \ | ||
| 16 | file://opt/intel/oneapi/licensing/${COMPILERMAINVER}/licensing/${COMPILERMAINVER}/license.htm;md5=5ff64c6ff3ef98089ed69360e7a84c39 \ | ||
| 17 | " | ||
| 18 | COMPILERDOTVER = "2024.0.0-49406" | ||
| 19 | DEVUTILITVERSION = "2024.0-2024.0.0-49320" | ||
| 20 | SRC_URI = " \ | ||
| 21 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-compiler-dpcpp-cpp-runtime-${COMPILERMAINVER}-${PV}_amd64.deb;subdir=${BPN};name=dpcpp-runtime \ | ||
| 22 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-compiler-dpcpp-cpp-common-${COMPILERMAINVER}-${PV}_all.deb;subdir=${BPN};name=dpcpp-common \ | ||
| 23 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-compiler-shared-runtime-${COMPILERMAINVER}-${PV}_amd64.deb;subdir=${BPN};name=compiler-shared-runtime \ | ||
| 24 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-common-vars-${COMPILERDOTVER}_all.deb;subdir=${BPN};name=common-vars \ | ||
| 25 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-openmp-${COMPILERMAINVER}-${PV}_amd64.deb;subdir=${BPN};name=openmp \ | ||
| 26 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-openmp-common-${COMPILERMAINVER}-${PV}_all.deb;subdir=${BPN};name=openmp-common \ | ||
| 27 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-common-licensing-${COMPILERMAINVER}-${COMPILERDOTVER}_all.deb;subdir=${BPN};name=license \ | ||
| 28 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-dev-utilities-${DEVUTILITVERSION}_amd64.deb;subdir=${BPN};name=dev-utils \ | ||
| 29 | " | ||
| 30 | |||
| 31 | SRC_URI[dpcpp-runtime.sha256sum] = "e24f0ba69daf3f66ceaf23d5e632f183cdb90bac69f65407fdb4407fc9034f33" | ||
| 32 | SRC_URI[dpcpp-common.sha256sum] = "f5a3db6a725598224edf1099260955aee3e36beadcaed2af5b8b453e873a82fa" | ||
| 33 | SRC_URI[compiler-shared-runtime.sha256sum] = "bce010cbe076259ddd3feb8e69792869e22fccd5b4e2c9af9e815826f2c1a394" | ||
| 34 | SRC_URI[common-vars.sha256sum] = "368553c99db1b52060b8225355336778be0b00e5991d0f769c42f891c6328750" | ||
| 35 | SRC_URI[openmp.sha256sum] = "154ff1e81adfdc872ba1d47bd860de70d62188417c7128422435dfd0ceca62fe" | ||
| 36 | SRC_URI[openmp-common.sha256sum] = "8217001d78311cbef97dd139e684c6767932b532309c3843ba57d7894d15c07d" | ||
| 37 | SRC_URI[license.sha256sum] = "9f9c8a12fc0bc82ab5b71e118e66745eff23f42224eba304068225b366cd74b6" | ||
| 38 | SRC_URI[dev-utils.sha256sum] = "c675d960a5abca361cead9217d6e74adee499ee0a095c4e44092bd710b304d50" | ||
| 39 | |||
| 40 | S = "${UNPACKDIR}/${BPN}" | ||
| 41 | |||
| 42 | inherit bin_package | ||
| 43 | |||
| 44 | RDEPENDS:${PN} += "virtual-opencl-icd zlib tbb level-zero-loader bash tcsh" | ||
| 45 | SKIP_FILEDEPS:${PN} = '1' | ||
| 46 | |||
| 47 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 48 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 49 | |||
| 50 | # doesn't have GNU_HASH (didn't pass LDFLAGS?) | ||
| 51 | INSANE_SKIP:${PN} += "textrel dev-so dev-elf ldflags already-stripped staticdev rpaths arch useless-rpaths file-rdeps" | ||
| 52 | |||
| 53 | FILES_SOLIBSDEV = "" | ||
| 54 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/dpcpp-compiler/intel-oneapi-dpcpp-cpp_2024.0.0-49819.bb b/dynamic-layers/clang-layer/recipes-oneapi/dpcpp-compiler/intel-oneapi-dpcpp-cpp_2024.0.0-49819.bb new file mode 100644 index 00000000..d2bd72a3 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/dpcpp-compiler/intel-oneapi-dpcpp-cpp_2024.0.0-49819.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | SUMMARY = "Intel® oneAPI DPC++/C++ Compiler" | ||
| 2 | DESCRIPTION = "The Intel® oneAPI DPC++/C++ Compiler provides optimizations \ | ||
| 3 | that help your applications run faster on Intel® 64 architectures with support \ | ||
| 4 | for the latest C, C++, and SYCL language standards. This compiler produces \ | ||
| 5 | optimized code that can run significantly faster by taking advantage of the \ | ||
| 6 | ever-increasing core count and vector register width in Intel® Xeon® processors \ | ||
| 7 | and compatible processors." | ||
| 8 | |||
| 9 | HOMEPAGE = "https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler.html" | ||
| 10 | |||
| 11 | LICENSE = "EULA" | ||
| 12 | |||
| 13 | COMPILERMAINVER = "2024.0" | ||
| 14 | |||
| 15 | LIC_FILES_CHKSUM = " \ | ||
| 16 | file://opt/intel/oneapi/compiler/${COMPILERMAINVER}/share/doc/compiler/credist.txt;md5=b41f55af9f479b9570fc35b955d5ba1a \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SRC_URI = " \ | ||
| 20 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-dpcpp-cpp-${COMPILERMAINVER}-${PV}_amd64.deb;subdir=${BPN};name=icx-compiler \ | ||
| 21 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-compiler-shared-${COMPILERMAINVER}-${PV}_amd64.deb;subdir=${BPN};name=compiler-linker \ | ||
| 22 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-compiler-shared-common-${COMPILERMAINVER}-${PV}_all.deb;subdir=${BPN};name=shared-common \ | ||
| 23 | " | ||
| 24 | |||
| 25 | SRC_URI[icx-compiler.sha256sum] = "0dcbac766d5a1519d4cf393f5a85e71d19024fef65f77638f3f849796b62cd82" | ||
| 26 | SRC_URI[compiler-linker.sha256sum] = "e00faea6d797934d62143e4aa70b727ce30f80fdf30769d22122b3051140c236" | ||
| 27 | SRC_URI[shared-common.sha256sum] = "cf490a4a790f349da79e618359598d3b32312ca3b2639e5d4c84e1cfa2745558" | ||
| 28 | |||
| 29 | S = "${UNPACKDIR}/${BPN}" | ||
| 30 | |||
| 31 | inherit bin_package | ||
| 32 | |||
| 33 | RDEPENDS:${PN} += "intel-oneapi-dpcpp-cpp-runtime" | ||
| 34 | SKIP_FILEDEPS:${PN} = '1' | ||
| 35 | |||
| 36 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 37 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 38 | |||
| 39 | # doesn't have GNU_HASH (didn't pass LDFLAGS?) | ||
| 40 | INSANE_SKIP:${PN} += "textrel dev-so dev-elf ldflags already-stripped file-rdeps staticdev rpaths arch useless-rpaths" | ||
| 41 | |||
| 42 | FILES_SOLIBSDEV = "" | ||
| 43 | |||
| 44 | EXCLUDE_FROM_SHLIBS = "1" | ||
| 45 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.3.3.bb b/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.3.3.bb new file mode 100644 index 00000000..30d26244 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/embree/embree_4.3.3.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "Collection of high-performance ray tracing kernels" | ||
| 2 | DESCRIPTION = "A collection of high-performance ray tracing kernels \ | ||
| 3 | intended to graphics application engineers that want to improve the \ | ||
| 4 | performance of their application." | ||
| 5 | HOMEPAGE = "https://github.com/embree/embree" | ||
| 6 | |||
| 7 | LICENSE = "Apache-2.0 & BSD-3-Clause" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 9 | file://third-party-programs.txt;md5=f989f5b74cfff0d45d3ccf0e1366cbdc \ | ||
| 10 | file://common/math/transcendental.h;beginline=6;endline=8;md5=73380bb2ab6613b30b8464f114bd0ca8" | ||
| 11 | |||
| 12 | inherit pkgconfig cmake | ||
| 13 | |||
| 14 | SRC_URI = "git://github.com/embree/embree.git;protocol=https;branch=master" | ||
| 15 | SRCREV = "5730b150471602d6dc02d9b7d8a4a6ce9ceffe16" | ||
| 16 | |||
| 17 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 18 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 19 | |||
| 20 | DEPENDS = "tbb jpeg libpng ispc-native" | ||
| 21 | |||
| 22 | EXTRA_OECMAKE += " \ | ||
| 23 | -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF \ | ||
| 24 | -DEMBREE_MAX_ISA=DEFAULT \ | ||
| 25 | -DEMBREE_ISPC_SUPPORT=ON \ | ||
| 26 | -DEMBREE_ZIP_MODE=OFF \ | ||
| 27 | " | ||
| 28 | # When tutorials are enabled, glvnd needs to be enabled: | ||
| 29 | # DISTRO_FEATURES += "glvnd" | ||
| 30 | PACKAGECONFIG[tutorial] = "-DEMBREE_TUTORIALS=ON,-DEMBREE_TUTORIALS=OFF,glfw" | ||
| 31 | |||
| 32 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/ipp/intel-oneapi-ipp_2021.10.0-653.bb b/dynamic-layers/clang-layer/recipes-oneapi/ipp/intel-oneapi-ipp_2021.10.0-653.bb new file mode 100644 index 00000000..d10f50f9 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/ipp/intel-oneapi-ipp_2021.10.0-653.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | DESCRIPTION = "Intel® Integrated Performance Primitives are production-ready \ | ||
| 2 | building blocks for cross-platform performance. Develop high-performance vision, \ | ||
| 3 | signal, security, and storage applications with this multithreaded software library." | ||
| 4 | HOMEPAGE = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/ipp.html" | ||
| 5 | |||
| 6 | LICENSE = "ISSL" | ||
| 7 | |||
| 8 | MAXVER = "2021.10" | ||
| 9 | |||
| 10 | LIC_FILES_CHKSUM = " \ | ||
| 11 | file://opt/intel/oneapi/ipp/${MAXVER}/share/doc/ipp/licensing/license.txt;md5=d7cdc92ed6c4de1263da879599ddc3e2 \ | ||
| 12 | file://opt/intel/oneapi/ipp/${MAXVER}/share/doc/ipp/licensing/third-party-programs.txt;md5=22bd13987911dcf790907041b43081f3 \ | ||
| 13 | " | ||
| 14 | SRC_URI = " \ | ||
| 15 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-ipp-${MAXVER}-${PV}_amd64.deb;subdir=${BPN};name=ipp \ | ||
| 16 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-ipp-common-devel-${MAXVER}-${PV}_all.deb;subdir=${BPN};name=headers \ | ||
| 17 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-ipp-common-${MAXVER}-${PV}_all.deb;subdir=${BPN};name=env \ | ||
| 18 | " | ||
| 19 | |||
| 20 | SRC_URI[ipp.sha256sum] = "b51e45c6e691aa46c7136b0ab61f5abe346388433e017a30cf53fd23e92bea07" | ||
| 21 | SRC_URI[headers.sha256sum] = "342f37ab2f82bc9f4498435f848ee660591c2488b44d988bf6ee96b2a71fd005" | ||
| 22 | SRC_URI[env.sha256sum] = "731e8c28a3b8b757730cd874d0941de2eb744856128f24ade59d36c12b415bf6" | ||
| 23 | |||
| 24 | S = "${UNPACKDIR}/${BPN}" | ||
| 25 | |||
| 26 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 27 | |||
| 28 | inherit bin_package | ||
| 29 | |||
| 30 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 32 | INHIBIT_DEFAULT_DEPS = "" | ||
| 33 | |||
| 34 | RDEPENDS:${PN} += "tbb setup-intel-oneapi-env" | ||
| 35 | INSANE_SKIP:${PN} += "ldflags dev-so" | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2024.0.0-49656.bb b/dynamic-layers/clang-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2024.0.0-49656.bb new file mode 100644 index 00000000..e77ac588 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/mkl/intel-oneapi-mkl_2024.0.0-49656.bb | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | SUMMARY = "Intel® oneAPI Math Kernel Library (oneMKL)" | ||
| 2 | DESCRIPTION = "The Intel® oneAPI Math Kernel Library (oneMKL) is a computing \ | ||
| 3 | math library of highly optimized and extensively parallelized routines \ | ||
| 4 | for applications that require maximum performance. oneMKL contains \ | ||
| 5 | the high-performance optimizations from the full Intel® Math Kernel Library \ | ||
| 6 | for CPU architectures (with C/Fortran programming language interfaces)\ | ||
| 7 | and adds to them a set of DPC++ programming language interfaces for \ | ||
| 8 | achieving performance on various CPU architectures \ | ||
| 9 | and Intel Graphics Technology for certain key functionalities." | ||
| 10 | HOMEPAGE = "https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl.html" | ||
| 11 | |||
| 12 | LICENSE = "ISSL" | ||
| 13 | |||
| 14 | MKLMAINVER = "2024.0" | ||
| 15 | |||
| 16 | LIC_FILES_CHKSUM = " \ | ||
| 17 | file://opt/intel/oneapi/mkl/${MKLMAINVER}/share/doc/mkl/licensing/license.txt;md5=8510d21bf355a76e378c3216c3929ccd \ | ||
| 18 | file://opt/intel/oneapi/mkl/${MKLMAINVER}/share/doc/mkl/licensing/third-party-programs-benchmarks.txt;md5=cb98e1a1f14c05ea85a979ea8982e7a4 \ | ||
| 19 | file://opt/intel/oneapi/mkl/${MKLMAINVER}/share/doc/mkl/licensing/third-party-programs-ipp.txt;md5=a4b2bf15e38f5c1267cdafed18bc0b09 \ | ||
| 20 | file://opt/intel/oneapi/mkl/${MKLMAINVER}/share/doc/mkl/licensing/third-party-programs-openmp.txt;md5=6b3c1aa2a11393060074c0346ce21e49 \ | ||
| 21 | file://opt/intel/oneapi/mkl/${MKLMAINVER}/share/doc/mkl/licensing/third-party-programs-safestring.txt;md5=c3aeee91c6d35a0f0753aed6c2633b82 \ | ||
| 22 | file://opt/intel/oneapi/mkl/${MKLMAINVER}/share/doc/mkl/licensing/third-party-programs.txt;md5=27de873e4084d62530fe828406b33ca9 \ | ||
| 23 | " | ||
| 24 | |||
| 25 | SRC_URI = " \ | ||
| 26 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-${MKLMAINVER}-${PV}_amd64.deb;subdir=${BPN};name=runtime \ | ||
| 27 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-common-devel-${MKLMAINVER}-${PV}_all.deb;subdir=${BPN};name=common-devel \ | ||
| 28 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-devel-${MKLMAINVER}-${PV}_amd64.deb;subdir=${BPN};name=devel \ | ||
| 29 | https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-common-${MKLMAINVER}-${PV}_all.deb;subdir=${BPN};name=common-vars \ | ||
| 30 | " | ||
| 31 | |||
| 32 | SRC_URI[runtime.sha256sum] = "10a86e24051d6ef4a80fd839c570e629190638a3c0ac9bcca99ab855f534b959" | ||
| 33 | SRC_URI[common-devel.sha256sum] = "adbf0ea946f63946d29b7f9c750c38a42ea7a65d8c81655b268aa2c7bb908192" | ||
| 34 | SRC_URI[devel.sha256sum] = "fab2a6f15e18bfd9b4d425f2703e4e98928c57f52c4feebc9ed886f097062e84" | ||
| 35 | SRC_URI[common-vars.sha256sum] = "ec2b67813739fa4a2895f63479a41acba2174afe2d0cb8a0c1c9119d1317d8ef" | ||
| 36 | |||
| 37 | S = "${UNPACKDIR}/${BPN}" | ||
| 38 | |||
| 39 | inherit bin_package | ||
| 40 | |||
| 41 | do_install:append () { | ||
| 42 | install -d ${D}${bindir} | ||
| 43 | (cd ${D}${bindir} ; ln -s ../../opt/intel/oneapi/mkl/${MKLMAINVER}/bin/* .) | ||
| 44 | install -d ${D}${libdir} | ||
| 45 | (cd ${D}${libdir} ; ln -s ../../opt/intel/oneapi/mkl/${MKLMAINVER}/lib/intel64/*.so* .) | ||
| 46 | (cd ${D}${libdir} ; ln -s ../../opt/intel/oneapi/mkl/${MKLMAINVER}/lib/intel64/*.a* .) | ||
| 47 | install -d ${D}${libdir}/pkgconfig | ||
| 48 | (cd ${D}${libdir}/pkgconfig ; ln -s ../../../opt/intel/oneapi/mkl/${MKLMAINVER}/lib/pkgconfig/* .) | ||
| 49 | install -d ${D}${libdir}/cmake | ||
| 50 | (cd ${D}${libdir}/cmake ; ln -s ../../../opt/intel/oneapi/mkl/${MKLMAINVER}/lib/cmake/* .) | ||
| 51 | |||
| 52 | install -d ${D}${includedir} | ||
| 53 | find ${D}/opt/intel/oneapi/mkl/${MKLMAINVER}/include/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | while read srcdir; do | ||
| 54 | install -d ${D}${includedir}/$srcdir | ||
| 55 | (cd ${D}${includedir} ; ln -s ../../opt/intel/oneapi/mkl/${MKLMAINVER}/include/$srcdir/* ./$srcdir/) | ||
| 56 | done | ||
| 57 | |||
| 58 | find ${D}/opt/intel/oneapi/mkl/${MKLMAINVER}/include/ -mindepth 1 -maxdepth 1 -type f -printf '%f\n' | while read srcfile; do | ||
| 59 | (cd ${D}${includedir} ; ln -s ../../opt/intel/oneapi/mkl/${MKLMAINVER}/include/$srcfile .) | ||
| 60 | done | ||
| 61 | } | ||
| 62 | |||
| 63 | AUTO_LIBNAME_PKGS = "" | ||
| 64 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 65 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 66 | |||
| 67 | RDEPENDS:${PN} += "bash tbb intel-oneapi-dpcpp-cpp-runtime setup-intel-oneapi-env virtual-opencl-icd" | ||
| 68 | INSANE_SKIP:${PN} = "ldflags textrel dev-so staticdev arch already-stripped" | ||
| 69 | |||
| 70 | FILES:${PN}-staticdev += "/opt/intel/oneapi/mkl/${MKLMAINVER}/lib/*.a*" | ||
| 71 | |||
| 72 | SKIP_FILEDEPS:${PN} = '1' | ||
| 73 | |||
| 74 | SYSROOT_DIRS += "/opt" | ||
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.1.0.bb new file mode 100644 index 00000000..8005f544 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/oidn/oidn_2.1.0.bb | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | SUMMARY = "Intel® Open Image Denoise" | ||
| 2 | DESCRIPTION = "Intel Open Image Denoise is an open source library of \ | ||
| 3 | high-performance, high-quality denoising filters for images \ | ||
| 4 | rendered with ray tracing. Intel Open Image Denoise is part \ | ||
| 5 | of the Intel® oneAPI Rendering Toolkit" | ||
| 6 | HOMEPAGE = "https://www.openimagedenoise.org/" | ||
| 7 | |||
| 8 | LICENSE = "Apache-2.0 & BSD-3-Clause" | ||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 10 | file://external/mkl-dnn/LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ | ||
| 11 | file://external/mkl-dnn/src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ | ||
| 12 | file://external/mkl-dnn/src/common/ittnotify/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ | ||
| 13 | file://weights/LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 14 | |||
| 15 | SRC_URI = "https://github.com/OpenImageDenoise/${BPN}/releases/download/v${PV}/${BP}.src.tar.gz\ | ||
| 16 | " | ||
| 17 | SRC_URI[sha256sum] = "ce144ba582ff36563d9442ee07fa2a4d249bc85aa93e5b25fc527ff4ee755ed6" | ||
| 18 | |||
| 19 | inherit cmake | ||
| 20 | |||
| 21 | DEPENDS += "tbb ispc-native" | ||
| 22 | |||
| 23 | do_install:append() { | ||
| 24 | chrpath -d ${D}${bindir}/* ${D}${libdir}/*${SOLIBS} | ||
| 25 | } | ||
| 26 | |||
| 27 | UPSTREAM_CHECK_URI = "https://github.com/OpenImageDenoise/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 new file mode 100644 index 00000000..b458bb4d --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/openvkl/openvkl_2.0.1.bb | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | SUMMARY = "Intel(R) Open Volume Kernel Library" | ||
| 2 | DESCRIPTION = "Intel(R) Open Volume Kernel Library (Intel(R) Open VKL) is a \ | ||
| 3 | collection of high-performance volume computation kernels. The target users \ | ||
| 4 | of Open VKL are graphics application engineers who want to improve the \ | ||
| 5 | performance of their volume rendering applications by leveraging Open VKL’s \ | ||
| 6 | performance-optimized kernels, which include volume traversal and sampling \ | ||
| 7 | functionality for a variety of volumetric data formats. The kernels are optimized \ | ||
| 8 | for the latest Intel(R) processors with support for SSE, AVX, AVX2, and AVX-512 \ | ||
| 9 | instructions." | ||
| 10 | HOMEPAGE = "https://www.openvkl.org/" | ||
| 11 | |||
| 12 | LICENSE = "Apache-2.0 & BSD-3-Clause & MIT & Zlib" | ||
| 13 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 14 | file://third-party-programs.txt;md5=69ec7caf49616c471161b921f53d5ec0 \ | ||
| 15 | file://testing/external/half.hpp;beginline=1;endline=17;md5=4b60058493630c3bd0ef145470f04a7b" | ||
| 16 | |||
| 17 | inherit pkgconfig cmake | ||
| 18 | |||
| 19 | SRC_URI = "git://github.com/openvkl/openvkl.git;protocol=https;branch=master \ | ||
| 20 | " | ||
| 21 | SRCREV = "8c6ba526813b871a624cb9d73d4cbb689ac7f4ce" | ||
| 22 | |||
| 23 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 24 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 25 | |||
| 26 | DEPENDS = "ispc ispc-native rkcommon embree" | ||
| 27 | |||
| 28 | EXTRA_OECMAKE += " \ | ||
| 29 | -DISPC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/ispc \ | ||
| 30 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ | ||
| 31 | " | ||
| 32 | EXTRA_OECMAKE:intel-corei7-64 += " \ | ||
| 33 | -DOPENVKL_ISA_AVX=OFF \ | ||
| 34 | -DOPENVKL_ISA_AVX2=OFF \ | ||
| 35 | -DOPENVKL_ISA_AVX512SKX=OFF \ | ||
| 36 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ | ||
| 37 | " | ||
| 38 | |||
| 39 | PACKAGES =+ "${PN}-examples" | ||
| 40 | FILES:${PN}-examples = "\ | ||
| 41 | ${bindir} \ | ||
| 42 | " | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray/0001-Fix-GCC11-Compile-Error-in-benchmark_register.h.patch b/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray/0001-Fix-GCC11-Compile-Error-in-benchmark_register.h.patch new file mode 100644 index 00000000..c2136321 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray/0001-Fix-GCC11-Compile-Error-in-benchmark_register.h.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 09e6b6615d9a16e9555eff9d569356e32bd26aa4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: benradel <86351445+benradel@users.noreply.github.com> | ||
| 3 | Date: Wed, 23 Jun 2021 11:56:03 +0200 | ||
| 4 | Subject: [PATCH] Fix GCC11 Compile Error in benchmark_register.h | ||
| 5 | |||
| 6 | Fix GCC11 compilation error due to missing header "limits" in benchmark_register.h | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/ospray/ospray/pull/484/files] | ||
| 9 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 10 | --- | ||
| 11 | apps/common/external/benchmark/src/benchmark_register.h | 1 + | ||
| 12 | 1 file changed, 1 insertion(+) | ||
| 13 | |||
| 14 | diff --git a/apps/common/external/benchmark/src/benchmark_register.h b/apps/common/external/benchmark/src/benchmark_register.h | ||
| 15 | index 61377d742..8f1bb7795 100644 | ||
| 16 | --- a/apps/common/external/benchmark/src/benchmark_register.h | ||
| 17 | +++ b/apps/common/external/benchmark/src/benchmark_register.h | ||
| 18 | @@ -2,6 +2,7 @@ | ||
| 19 | #define BENCHMARK_REGISTER_H | ||
| 20 | |||
| 21 | #include <vector> | ||
| 22 | +#include <limits> | ||
| 23 | |||
| 24 | #include "check.h" | ||
| 25 | |||
| 26 | -- | ||
| 27 | 2.32.0 | ||
| 28 | |||
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 new file mode 100644 index 00000000..609e5dc3 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/ospray/ospray_3.2.0.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SUMMARY = "Intel OSPray, Ray Tracing based Rendering Engine" | ||
| 2 | DESCRIPTION = "Intel OSPRay is an open source, scalable, and portable ray \ | ||
| 3 | tracing engine for high-performance, high-fidelity visualization on \ | ||
| 4 | Intel Architecture CPUs." | ||
| 5 | HOMEPAGE = "https://www.ospray.org/" | ||
| 6 | |||
| 7 | LICENSE = "Apache-2.0 & BSD-3-Clause & MIT & Zlib" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1dece7821bf3fd70fe1309eaa37d52a2 \ | ||
| 9 | file://third-party-programs.txt;md5=e37b77e3bd997abccc359c710fb1f1db \ | ||
| 10 | " | ||
| 11 | |||
| 12 | inherit pkgconfig cmake | ||
| 13 | |||
| 14 | SRC_URI = "git://github.com/ospray/ospray.git;protocol=https;branch=master;name=ospray \ | ||
| 15 | git://github.com/nothings/stb;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/apps/common/external/stb_image/stb;name=stb;nobranch=1 \ | ||
| 16 | " | ||
| 17 | SRCREV_ospray ?= "85af2929937d516997451cbd52d352cf93125ed2" | ||
| 18 | SRCREV_stb ?= "af1a5bc36dff44f0a019df21c271db697d51f1a6" | ||
| 19 | SRCREV_FORMAT = "ospray_stb" | ||
| 20 | |||
| 21 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
| 22 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 23 | |||
| 24 | DEPENDS = "rkcommon ispc ispc-native openvkl embree" | ||
| 25 | |||
| 26 | EXTRA_OECMAKE += " \ | ||
| 27 | -DISPC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/ispc \ | ||
| 28 | -DOSPRAY_ENABLE_APPS_BENCHMARK=OFF \ | ||
| 29 | -DOSPRAY_ENABLE_APPS_TESTING=OFF \ | ||
| 30 | -DOSPRAY_ENABLE_APPS_EXAMPLES=OFF \ | ||
| 31 | " | ||
| 32 | |||
| 33 | PACKAGES =+ "${PN}-apps" | ||
| 34 | FILES:${PN}-apps = "\ | ||
| 35 | ${bindir} \ | ||
| 36 | " | ||
| 37 | |||
| 38 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" | ||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/rkcommon/files/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch b/dynamic-layers/clang-layer/recipes-oneapi/rkcommon/files/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch new file mode 100644 index 00000000..5aef2b76 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/rkcommon/files/0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | From f0885d7d97e98ad586bbacf5edf7fa4022b425b9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 3 | Date: Mon, 11 Aug 2025 14:00:50 +0800 | ||
| 4 | Subject: [PATCH] use fully-qualified rkcommon::math::rsqrt to avoid overload | ||
| 5 | ambiguity | ||
| 6 | |||
| 7 | Explicitly calling rkcommon::math::rsqrt() prevents conflict with the | ||
| 8 | standard rsqrt(double) declared in bits/mathcalls.h, fixing the build | ||
| 9 | error in Quaternion tests. | ||
| 10 | |||
| 11 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
| 12 | |||
| 13 | Upstream-Status: Submitted [https://github.com/RenderKit/rkcommon/pull/16] | ||
| 14 | --- | ||
| 15 | tests/math/test_Quaternion.cpp | 2 +- | ||
| 16 | tests/math/test_rkmath.cpp | 4 ++-- | ||
| 17 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/tests/math/test_Quaternion.cpp b/tests/math/test_Quaternion.cpp | ||
| 20 | index 760d815..f527824 100644 | ||
| 21 | --- a/tests/math/test_Quaternion.cpp | ||
| 22 | +++ b/tests/math/test_Quaternion.cpp | ||
| 23 | @@ -187,7 +187,7 @@ template <typename T> | ||
| 24 | inline void test_slerp() | ||
| 25 | { | ||
| 26 | typename T::Scalar two = 2; | ||
| 27 | - REQUIRE(CmpT(slerp(.5f, T(1, 0, 0, 0), T(0, 1, 0, 0)), T(rsqrt(two), rsqrt(two), 0, 0))); | ||
| 28 | + REQUIRE(CmpT(slerp(.5f, T(1, 0, 0, 0), T(0, 1, 0, 0)), T(rkcommon::math::rsqrt(two), rkcommon::math::rsqrt(two), 0, 0))); | ||
| 29 | } | ||
| 30 | |||
| 31 | TEST_CASE("Quaternion functions", "[quat]") | ||
| 32 | diff --git a/tests/math/test_rkmath.cpp b/tests/math/test_rkmath.cpp | ||
| 33 | index 7f66532..fd18df4 100644 | ||
| 34 | --- a/tests/math/test_rkmath.cpp | ||
| 35 | +++ b/tests/math/test_rkmath.cpp | ||
| 36 | @@ -49,8 +49,8 @@ TEST_CASE("rkmath rcp_safe function", "[rkmath]") | ||
| 37 | template <typename T> | ||
| 38 | inline void test_rsqrt() | ||
| 39 | { | ||
| 40 | - REQUIRE(CmpT<T>(rsqrt(T(1)), T(1))); | ||
| 41 | - REQUIRE(CmpT<T>(rsqrt(T(4)), T(.5))); | ||
| 42 | + REQUIRE(CmpT<T>(rkcommon::math::rsqrt(T(1)), T(1))); | ||
| 43 | + REQUIRE(CmpT<T>(rkcommon::math::rsqrt(T(4)), T(.5))); | ||
| 44 | } | ||
| 45 | |||
| 46 | TEST_CASE("rkmath rsqrt function", "[rkmath]") | ||
| 47 | -- | ||
| 48 | 2.37.3 | ||
| 49 | |||
diff --git a/dynamic-layers/clang-layer/recipes-oneapi/rkcommon/rkcommon_1.14.0.bb b/dynamic-layers/clang-layer/recipes-oneapi/rkcommon/rkcommon_1.14.0.bb new file mode 100644 index 00000000..d49e8e52 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-oneapi/rkcommon/rkcommon_1.14.0.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | SUMMARY = "rkcommon - C++/CMake infrastructure" | ||
| 2 | DESCRIPTION = "A common set of C++ infrastructure and CMake utilities \ | ||
| 3 | used by various components of Intel® oneAPI Rendering Toolkit." | ||
| 4 | HOMEPAGE = "https://github.com/ospray/rkcommon" | ||
| 5 | |||
| 6 | LICENSE = "Apache-2.0" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 8 | |||
| 9 | inherit pkgconfig cmake | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/ospray/rkcommon.git;protocol=https;branch=master \ | ||
| 12 | file://0001-use-fully-qualified-rkcommon-math-rsqrt-to-avoid-ove.patch \ | ||
| 13 | " | ||
| 14 | SRCREV = "4a00047ae5a3ac705b6b33b4a7574588d91e7953" | ||
| 15 | |||
| 16 | DEPENDS = "tbb" | ||
| 17 | |||
| 18 | EXTRA_OECMAKE += " -DBUILD_TESTING=OFF" | ||
