Commit Graph

171 Commits

Author SHA1 Message Date
Yogesh Tyagi
b1f2259667
intel-graphics-compiler: add nobranch=1 in SRC_URI
Upstream has force pushed master in SPIRV-Headers and the commit we were fetching is
no longer present on that branch. Remove the branch parameter and switch
to using nobranch to continue using that commit.

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2025-05-19 11:55:49 +08:00
Yogesh Tyagi
1abc8ef0fc
intel-compute-runtime : Fix build error with gcc13
Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-09-24 22:07:08 +08:00
Yogesh Tyagi
474bdffd8b
intel-compute-runtime: backport fix
fixes following build error in intel-compute-runtime-native on Ubuntu 24.04 host:
error: ‘*(const NEO::ArgDescValue::Element*)((char*)&<unnamed> + offsetof(NEO::ArgDescValue, NEO::ArgDescValue::elements.StackVec<NEO::ArgDescValue::Element, 1, unsigned char>::onStackMemRawBytes[0]))’ may be used uninitialized [-Werror=maybe-uninitialized]

Backport patch:
* 0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-09-24 21:18:14 +08:00
Yogesh Tyagi
6162444a46
intel-graphics-compiler: backport fix
fixes following build error in ispc-native on Ubuntu 24.04 host:
note: ‘UINT16_MAX’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

Backport patch:
* 0001-SPIRVutil-Include-cstdint-to-fix-GCC-13-build.patch

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-09-24 21:18:14 +08:00
Yogesh Tyagi
ed415ff3ab
ispc: backport fix
fixes following build error in ispc-native on Ubuntu 24.04 host:
"note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?"

Backport patch:
* 0001-Fix-build-with-GCC-13-and-possibly-Clang-15.patch

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2024-09-24 21:18:13 +08:00
Anuj Mittal
1342bcdc5b onednn: upgrade 2.6.1 -> 2.6.3
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-08-29 09:37:00 +08:00
Yogesh Tyagi
f30c2a8a3d opencl-clang/14.0: update to latest
Drop patch 0001-don-t-redefine-LLVM_TABLEGEN_EXE.patch
which is not needed anymore

Backport a fix from main branch to fix build issues.

Move do_install:append:class-native to individual recipe

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-08-25 13:50:42 +08:00
Naveen Saini
9f1dfc1139 ispc: fix run_tests.py test script
Some testcases are currently failing with following error:
/usr/bin/x86_64-poky-linux-ld: ./tests/static-array-init-1.ispc.o:
relocation R_X86_64_32S against `.rodata.cst16' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/x86_64-poky-linux-ld: failed to set dynamic section sizes: bad value

Backport patch.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-19 17:39:59 +08:00
Naveen Saini
a19fda659a ispc: fix recipe
There are few problems in current recipe:

(1)
ispc needs to invoke native llvm-config from target sysroot to list LLVM
lib libraries. clang already provides crossscripts/llvm-config, which does
the job.

However, using LLVM_TOOLS_BINARY_DIR leads to wrong llvm-config being
used. So remove it from search path for llvm-config.

(2)
Error:
ispc/1.17.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld:
ispc/1.17.0-r0/recipe-sysroot-native/usr/lib/libclang-cpp.so: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'
error: linker command failed with exit code 1 (use -v to see invocation)

Native libraries were being linked to target libraries leading to this
failure. Fix and cleanup DEPENDS/RDEPENDS.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-17 09:45:24 +08:00
Anuj Mittal
94837c7212 vc-intrinsics: add nobranch=1 in SRC_URI
Upstream has force pushed master and the commit we were fetching is
no longer present on that branch. Remove the branch parameter and switch
to using nobranch to continue using that commit.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-11-01 16:23:19 +08:00
Anuj Mittal
01ad1a73aa intel-graphics-compiler: add nobranch=1 in SRC_URI
Upstream has force pushed master and the commit we were fetching is
no longer present on that branch. Remove the branch parameter and switch
to using nobranch to continue using that commit.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-19 12:10:29 +08:00
Anuj Mittal
032466fb6e onednn: turn on PACKAGECONFIG for GPU engine
Build OCL GPU engine by default now that compute runtime works with
latest LLVM.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-12 17:00:15 +08:00
Yogesh Tyagi
43224e937a onednn : Upgrade 2.6 -> 2.6.1
Release Notes:
https://github.com/oneapi-src/oneDNN/releases/tag/v2.6.1

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 97ac7b761e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-12 17:00:05 +08:00
Anuj Mittal
3898a44d2f intel-compute-runtime: upgrade 22.23.23405 -> 22.31.23852
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-12 10:54:02 +08:00
Anuj Mittal
f47a4b00fe intel-graphics-compiler: upgrade 1.0.11378 -> 1.0.11702.1
Update vc-intrinsics to v0.5.0 tag.

This release includes support for LLVM14.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-10 22:38:26 +08:00
Anuj Mittal
79ca0ec8d4 intel-compute-runtime: upgrade 22.22.23355 -> 22.23.23405
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 5ffac66996)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-10 15:06:30 +08:00
Anuj Mittal
3af3b5cc13 intel-graphics-compiler: upgrade 1.0.11279 -> 1.0.11378
Remove the backported patch.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 2f913cdb36)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-10 15:06:30 +08:00
Anuj Mittal
8f771fa4a8 intel-compute-runtime: upgrade 22.11.22682 -> 22.22.23355
Remove upstreamed patch and revert to default for built-ins compilation.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 66f4ff0083)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-06-13 10:40:13 +08:00
Anuj Mittal
26d268b690 intel-graphics-compiler: upgrade 1.0.10395 -> 1.0.11279
* Remove upstreamed patches and refresh others.
* Include the LICENSE.md file and remove the cpp file which just points to
MIT license.
* Update the license to MIT and Apache-2.0
* Install vcb tool from -native recipe.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 7cd06a4a71)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-06-13 10:40:13 +08:00
Anuj Mittal
97f5227226 intel-graphics-compiler: define SRCREV_FORMAT
Since this fetches multiple repositories, define SRCREV_FORMAT so SRCPV
is expanded properly.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit a678464d4d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-05-19 10:44:53 +08:00
Naveen Saini
fb23bc3e66 onednn: upgrade 2.5.3 -> 2.6
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-05-06 22:39:33 +08:00
Naveen Saini
4d19fc59bb ispc: disable build for Windows, android and other targets
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-04-22 22:34:38 +08:00
Anuj Mittal
6177e7d952 llvm-project-source: refresh patches
Refresh the patches as recommended by the opencl-clang and include
support for OpenCL 3.0.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-04-20 10:01:31 +08:00
Anuj Mittal
cded77490f vc-intrinsics: update to latest
Use the revision just beyond newly created 0.1.0 tag and bump PE.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-04-13 19:09:33 +08:00
Anuj Mittal
68e00896f2 opencl-clang: upgrade 13.0.0 -> 14.0.0
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-04-05 15:59:12 +08:00
Anuj Mittal
c993e8e815 Remove support for building with LLVM 10
We no longer support building with older branches of OE-Core/meta-clang
so remove LLVM 10 specific configurations and patches.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-04-05 15:59:12 +08:00
Dongwon Kim
c2c0f2ade5 compute-runtime: version update from 22.08.22549 to 22.11.22682
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-24 18:34:50 +08:00
Anuj Mittal
311b432394 intel-graphics-compiler: fix compile issues
Backport patches to fix compile problems like:

| /build/build/tmp/work/corei7-64-poky-linux/intel-graphics-compiler/1.0.10395-r0/git/visa/LocalScheduler/SWSB_G4IR.cpp:1459:49: error: expected primary-expression before 'int'
|  1459 |         int maxTokenDelay = std::numeric_limits<int>::min(); //The delay may cause if reuse
|       |                                                 ^~~
| /build/build/tmp/work/corei7-64-poky-linux/intel-graphics-compiler/1.0.10395-r0/git/visa/LocalScheduler/SWSB_G4IR.cpp:1460:37: error: 'numeric_limits' is not a member of 'std'
|  1460 |         int minTokenDistance = std::numeric_limits<int>::max(); //The distance from the reused node

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-22 18:13:47 +08:00
Naveen Saini
cd94a7af54 onednn: upgrade 2.5.2 -> 2.5.3
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-07 16:14:46 +08:00
Anuj Mittal
2bde8e7514 intel-compute-runtime: fix patch fuzz
Fix warnings:

| Applying patch allow-to-find-cpp-generation-tool.patch
| patching file shared/source/built_ins/kernels/CMakeLists.txt
| Hunk #1 succeeded at 94 with fuzz 2 (offset -6 lines).
| Hunk #2 succeeded at 147 with fuzz 2 (offset 3 lines).
|
| The context lines in the patches can be updated with devtool:
|
|     devtool modify intel-compute-runtime
|     devtool finish --force-patch-refresh intel-compute-runtime <layer_path>
|
| Don't forget to review changes done by devtool!

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-07 14:16:04 +08:00
Dongwon Kim
6fba58adb3 compute-runtime: version update from 21.40.21182 to 22.08.22549
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-04 15:06:34 +08:00
Dongwon Kim
4a0450a4fa intel-graphics-compiler: version update from 1.0.8744 to 1.0.10395
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-04 15:03:21 +08:00
Ezhilarasan
f25cc6b707 ipsc: upgrade 1.16.1 -> 1.17.0
Release notes:
https://github.com/ispc/ispc/releases/tag/v1.17.0

Signed-off-by: Ezhilarasan <ezhilarasanx.s@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-03-02 17:39:01 +08:00
ezhilarasan s
2c6d52453c onednn: upgrade 2.4.4 -> 2.5.2
*Fixed performance regression in binary primitive with broadcast (b972174, ff75122).
 *Fixed issue with SYCL device properties initialization (cabc5ca, 095f13e).
 *Fixed issue in matmul primitive with zero points (3157354).
 *Fixed segmentation fault in depthwise convolution primitive for shapes with huge spatial size for processors with Intel AVX-512 support (6834764, 1d2addc).
 *Fixed issue in forward convolution primitive for processors with Intel AVX2 support (d691137).
 *Fixed performance regression on GPUs with SYCL runtime (d8364e5).

Signed-off-by: ezhilarasan s <ezhilarasanx.s@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-02-12 00:37:48 +08:00
Anuj Mittal
5ebbe2ae21 onednn: upgrade 2.4 -> 2.4.4
Release notes:
https://github.com/oneapi-src/oneDNN/releases/tag/v2.4.4

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-11-24 22:34:33 +08:00
Anuj Mittal
e4d0c52cba meta: add explicit branch and protocol to SRC_URI
Add branch name explicitly to SRC_URI where it's not defined and switch
to using https protocol for Github projects.

The change was made using convert_srcuri script for OE-Core.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-11-03 12:35:28 +08:00
Naveen Saini
d8584ea9d7 intel-graphics-compiler: add PACKAGECONFIG for VectorCompiler
Allow users to disable it but enable by default.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-25 22:02:18 +08:00
Anuj Mittal
3b386a9dc8 llvm-project-source/10.0.1: backport fixes from LLVM 11
Include a fix and two supporting patches from LLVM 11 to fix problems
with double registration while both clang-cpp and llvm lib are linked
(like in case of opencl-clang).

| CommandLine Error: Option 'mc-relax-all' registered more than once!
| LLVM ERROR: inconsistency in registered CommandLine options

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-21 23:42:39 +08:00
Anuj Mittal
a809b8c531 Remove support for gatesgarth
Building with oe-core gatesgarth is no longer supported. Remove from
LAYERSERIES_COMPAT and remove the LLVM 11 patches as well.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-13 11:23:41 +08:00
Anuj Mittal
467d15d57a intel-graphics-compiler: enable VectorCompiler
Use the option to use Khronos translator instead of the
pre-built SPIRVDLL with VC. Also have the native recipe
install a binary needed for the target builds.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-13 11:23:34 +08:00
Anuj Mittal
3cb5e468fb intel-compute-runtime: upgrade 21.37.20939 -> 21.40.21182
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-12 09:22:04 +08:00
Anuj Mittal
afb4218a3e onednn: upgrade 2.3.2 -> 2.4
Release notes:
https://github.com/oneapi-src/oneDNN/releases/tag/v2.4

Remove reference to Mathjax license as it's no longer used.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-12 00:40:55 +08:00
Anuj Mittal
cd0ba51efd intel-compute-runtime: upgrade 21.33.20678 -> 21.37.20939
Disable built-ins compilation when building for native.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-07 22:51:41 +08:00
Anuj Mittal
2d445772a7 intel-graphics-compiler: upgrade 1.0.8365 -> 1.0.8744
Build vc-intrintics as part of this project as igc expects it to. Remove
the LLVM fixes as they are all available upstream now. Also depend on
-native for invoking elf_packager.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-10-07 22:51:26 +08:00
Anuj Mittal
e332560497 Revert "intel-graphics-compiler: upgrade 1.0.8365 -> 1.0.8708"
This reverts commit 8a1fb876b0.

The upgrade doesn't build properly and needs re-work.
2021-10-04 11:22:47 +08:00
Anuj Mittal
8a1fb876b0 intel-graphics-compiler: upgrade 1.0.8365 -> 1.0.8708
Remove patches that are not required now.

IGC_BUILD__USE_KHRONOS_SPIRV_TRANSLATOR has been renamed so it wasn't
taking effect. Remove the option for now.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-09-30 15:52:23 +08:00
Naveen Saini
de377897d6 vc-intrinsics: update to include latest commits
It includes:
a2f2f10 Fix Cmake Error
6221091 Fix llvm verifier assertion
2bbb573 Add missing header
fd9bf4b Wrap AttributeList::hasFnAttr
90113a5 add intrinsic to represent visa madw instr
4e3870d Revert "Introduce new vc intrinsic to access timestamp register"
0bf761e Mark lit tests as XFAIL for llvm 14 (tot)
05d3f3d Add global variables support to GenXSingleElementVector pass
43b1af8 Fix typo in GenXIntrinsics/CMakeLists.txt
185f382 update copyright headers update Python copyright to PEP8 style
63cbfe0 update MIT copyright headers
f45e04c Introduce new vc intrinsic to access timestamp register
d9ffe1f (origin/dpcpp_staging) Add intrinsics for bindless buffers support
6d29de3 update comment format of rst copyright headers
b976b83 introduce bf_cvt intrinsic

Udated LIC_FILES_CHKSUM, due to reformating and restructuing of
copyright notice header.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-09-03 23:43:52 +08:00
Naveen Saini
8be678fdef opencl-clang/13.0.0: add recipe
Build opencl-clang with llvm-13 and point to latest from ocl-open-130
branch.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-09-03 09:25:01 +08:00
Naveen Saini
7cd64cc018 opencl-clang: restructure
Restructured recipes, having common code in .inc

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-09-03 09:25:01 +08:00
Naveen Saini
a6dadb2499 opencl-clang/12.0.0: build with llvm-12 only
Recipe for opencl-clang/13.0.0 is being added to build against
LLVM-13 and higer.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-09-03 09:25:01 +08:00