Commit Graph

134 Commits

Author SHA1 Message Date
Anuj Mittal
8af199950b intel-compute-runtime: use qemu to run native binaries
Now that intel-skylake-64 can use qemu-user as well, don't build native
version of the recipe simply for use by the target version. Build a
qemuwrapper that can be passed to CMAKE_CROSSCOMPILING_EMULATOR.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-07-17 09:24:48 +08:00
Anuj Mittal
4f5cc7a0a0 intel-graphics-compiler: use qemu to run native binaries
Now that intel-skylake-64 can use qemu-user as well, don't build native
version of the recipe simply for use by the target version. Build a
qemuwrapper that can be passed to CMAKE_CROSSCOMPILING_EMULATOR.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-07-17 09:24:48 +08:00
Anuj Mittal
dab85c2325 intel-compute-runtime: upgrade 23.13.26032.30 -> 23.17.26241.22
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-07-17 09:24:48 +08:00
Anuj Mittal
25884a1812 intel-graphics-compiler: upgrade 1.0.13700.14 -> 1.0.13822.6
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-07-17 09:24:48 +08:00
Anuj Mittal
c8fc88b7ed intel-compute-runtime: fix build with gcc13
Dont turn warnings to errors. Helps when compiling with gcc13.

 | /build/poky/build/tmp/work/corei7-64-poky-linux/intel-compute-runtime/23.09.25812.14-r0/recipe-sysroot/usr/include/c++/13.1.1/bits/stl_algobase.h:398:11: error: '*(unsigned char (*)[7])((char*)&<unnamed> + offsetof(NEO::ArgDescValue, NEO::ArgDescValue::elements.StackVec<NEO::ArgDescValue::Element, 1, unsigned char>::onStackMemRawBytes[0]))' may be used uninitialized [-Werror=maybe-uninitialized]
 |   398 |         { *__to = *__from; }
 |       |

Also, include cstdint header to get rid of other gcc13 specific errors.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-30 15:10:17 +08:00
Teoh Suh Haw
1340aeb6c7 intel-compute-runtime: upgrade 23.09.25812.14 -> 23.13.26032.30
Release Notes:
https://github.com/intel/compute-runtime/releases/tag/23.13.26032.30

Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-30 09:55:36 +08:00
Teoh Suh Haw
b533ec1ecd intel-graphics-compiler: upgrade 1.0.13463.18 -> 1.0.13700.14
Release Notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.13700.14

Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-05-30 09:55:36 +08:00
Teoh Suh Haw
6f55220359 intel-graphics-compiler: upgrade 1.0.13230.7 -> 1.0.13463.18
Release Notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.13463.18

Upgrade SPIRV-Tools to v2023.2 release
Upgrade SPIRV-Headers to tag sdk-1.3.243.0

Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-04-28 12:47:23 +08:00
Teoh Suh Haw
0b3f156219 intel-compute-runtime: upgrade 23.05.25593.11 -> 23.09.25812.14
Release Notes:
https://github.com/intel/compute-runtime/releases/tag/23.09.25812.14

Adapt external-ocloc.patch

Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-04-28 12:47:23 +08:00
Teoh Suh Haw
51b86cf2fe intel-compute-runtime: upgrade 22.49.25018.24 -> 23.05.25593.11
Release Notes:
https://github.com/intel/compute-runtime/releases/tag/23.05.25593.11

Adapt allow-to-find-cpp-generation-tool.patch

Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-04-13 10:48:54 +08:00
Teoh Suh Haw
aed4bb9af7 intel-graphics-compiler: upgrade 1.0.12812.24 -> 1.0.13230.7
Release Notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.13230.7

Drop already merged patches:
c707d1e2244aec988bdd5d2a7473ef3a32a5bac7.patch
d1761dfc3ca6b54bac0ee213389a65f84d2aa9b7.patch
e09e752949e7af0231884d1b11ea907e3e8b1611.patch
fix-build-with-llvm12.patch

Fixes fuzz warnings.

Signed-off-by: Teoh Suh Haw <suh.haw.teoh@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-04-13 10:48:16 +08:00
Anuj Mittal
3289c1c659 intel-compute-runtime: upgrade 22.38.24278 -> 22.49.25018.24
Release notes:
https://github.com/intel/compute-runtime/releases/tag/22.49.25018.24

License-Update: Includes full text of license now.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-02-24 12:28:53 +08:00
Chee Yang Lee
9302542eba igc: add patch upstream status
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-02-24 12:15:04 +08:00
Anuj Mittal
4a5cfd3542 intel-graphics-compiler: upgrade 1.0.12812.9 -> 1.0.12812.24
Release notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.12812.24

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-02-24 11:54:44 +08:00
Anuj Mittal
e99756e072 intel-graphics-compiler: ignore buildpaths warning
Ignore the buildpath being embedded in bitcode by clang until we've
found a way to fix.

| QA Issue: File /usr/lib/libigc.so.1.0.1 in package intel-graphics-compiler contains reference to TMPDIR [buildpaths]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-01-16 13:57:51 +08:00
Anuj Mittal
7d7aaa0826 intel-graphics-compiler: fix buildpaths warnings
Clone SPIRV-Tools and Headers in S instead of WORKDIR so they don't
escape file-prefix-map substitutions.

Fixes buildpaths warnings:

| WARNING: intel-graphics-compiler-1.0.12812.9-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libigc.so.1.0.1 in package intel-graphics-compiler-dbg contains reference to TMPDIR [buildpaths]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2023-01-09 17:14:30 +08:00
Anuj Mittal
d72944f14c intel-graphics-compiler: refresh patches
Fixes fuzz warnings:

| WARNING: intel-graphics-compiler-1.0.12812.9-r0 do_patch: Fuzz detected:
|
| Applying patch c707d1e2244aec988bdd5d2a7473ef3a32a5bac7.patch
| patching file IGC/BiFModule/CMakeLists.txt
| patching file IGC/CMakeLists.txt
| patching file IGC/Compiler/CodeGenContext.cpp
| Hunk #1 succeeded at 232 (offset 1 line).
| patching file IGC/OCLFE/igd_fcl_mcl/source/clang_tb.cpp
| patching file IGC/VectorCompiler/lib/BiF/CMakeLists.txt
| Hunk #2 succeeded at 110 with fuzz 2.
| patching file IGC/cmake/igc_llvm.cmake

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-12-07 21:58:27 +08:00
Anuj Mittal
de59d48ad2 intel-graphics-compiler: fix build issues with LLVM12
Fixes:
/git/IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFRegion.cpp:412:31: error: ‘experimental_vector_reduce_or’ is not a member of ‘llvm::Intrinsic’; did you mean ‘experimental_vector_insert’?
[2022-12-06T21:01:52.813Z] |   412 |                    Intrinsic::experimental_vector_reduce_or;
[2022-12-06T21:01:52.813Z] |       |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2022-12-06T21:01:52.813Z] |       |                               experimental_vector_insert

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-12-07 15:12:33 +08:00
Anuj Mittal
d01bcf8747 intel-graphics-compiler: upgrade 1.0.12149.1 -> 1.0.12812.9
Upgrade to the latest tag and backport 3 patches to fix build issues
with LLVM 15 [1].

Remove IGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_VC option as it has
been removed upstream [2].

And, make sure CLANG_EXE points to clang in native sysroot.

[1] https://github.com/intel/intel-graphics-compiler/issues/263
[2] 3fde0acae8

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-12-06 13:24:06 +08:00
Naveen Saini
323fee2ce0 vc-intrinsics: update to latest
Use tag v0.7.0 revision.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-25 14:39:18 +08:00
Naveen Saini
7dffd82399 opencl-clang/15.0.0: add recipe
Build opencl-clang with llvm-15 and point to latest from ocl-open-150
branch.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-10-25 14:39:18 +08:00
Yogesh Tyagi
819b6cf9c1 intel-graphics-compiler : upgrade 1.0.11702.1 -> 1.0.12149.1
Release Notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.12149.1

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-29 19:05:52 +08:00
Yogesh Tyagi
f77562ad34 intel-compute-runtime : upgrade 22.32.23937 -> 22.38.24278
Release Notes:
https://github.com/intel/compute-runtime/releases/tag/22.38.24278

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-09-29 19:05:52 +08:00
Anuj Mittal
3b6b2b8825 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 15:07:49 +08:00
Anuj Mittal
87d4088ecf intel-compute-runtime: upgrade 22.31.23852 -> 22.32.23937
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-17 14:27:54 +08:00
Anuj Mittal
0a7687b2c1 Remove support for LLVM 12
We can now build with LLVM 14 and no longer need to keep LLVM 12 patches
and compatibility code.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-15 13:40:22 +08:00
Anuj Mittal
ecca05175c intel-compute-runtime: upgrade 22.23.23405 -> 22.31.23852
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-08-12 10:19:24 +08:00
Anuj Mittal
cfef5f829e 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 14:58:47 +08:00
Anuj Mittal
5ffac66996 intel-compute-runtime: upgrade 22.22.23355 -> 22.23.23405
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-06-17 16:30:06 +08:00
Anuj Mittal
2f913cdb36 intel-graphics-compiler: upgrade 1.0.11279 -> 1.0.11378
Remove the backported patch.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-06-17 16:30:06 +08:00
Anuj Mittal
66f4ff0083 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>
2022-06-10 16:26:06 +08:00
Anuj Mittal
7cd06a4a71 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>
2022-06-10 16:25:57 +08:00
Anuj Mittal
ebb8c1c26e intel-compute-runtime: fix failures with gcc12
Backport patch to fix build failures like:

| recipe-sysroot/usr/include/c++/12.1.0/bits/unique_ptr.h:95:9: error: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
|    95 |         delete __ptr;
|       |         ^~~~~~~~~~~~
| git/shared/source/os_interface/windows/wddm/adapter_info.cpp: In function 'std::wstring NEO::queryAdapterDriverStorePath(const Gdi&, D3DKMT_HANDLE)':
| git/shared/source/os_interface/windows/wddm/adapter_info.cpp:31:117: note: returned from 'void* operator new [](std::size_t)'
|    31 |     std::unique_ptr<uint64_t> storage{new uint64_t[(privateDataSizeNeeded + sizeof(uint64_t) - 1) / sizeof(uint64_t)]};
|       |                                                                                                                     ^
| In member function 'void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = long unsigned int]',
|     inlined from 'std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = long unsigned int; _Dp = std::default_delete<long unsigned int>]' at recipe-sysroot/usr/include/c++/12.1.0/bits/unique_ptr.h:396:17,
|     inlined from 'std::wstring NEO::queryAdapterDriverStorePath(const Gdi&, D3DKMT_HANDLE)' at git/shared/source/os_interface/windows/wddm/adapter_info.cpp:46:1:
| recipe-sysroot/usr/include/c++/12.1.0/bits/unique_ptr.h:95:9: error: 'void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete]
|    95 |         delete __ptr;
|       |         ^~~~~~~~~~~~
| git/shared/source/os_interface/windows/wddm/adapter_info.cpp: In function 'std::wstring NEO::queryAdapterDriverStorePath(const Gdi&, D3DKMT_HANDLE)':
| git/shared/source/os_interface/windows/wddm/adapter_info.cpp:31:117: note: returned from 'void* operator new [](std::size_t)'
|    31 |     std::unique_ptr<uint64_t> storage{new uint64_t[(privateDataSizeNeeded + sizeof(uint64_t) - 1) / sizeof(uint64_t)]};
|       |                                                                                                                     ^

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2022-05-20 00:25:29 +08:00
Anuj Mittal
a678464d4d 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>
2022-05-10 15:29:14 +08:00
Anuj Mittal
7980023e6d 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:02 +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
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
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
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
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