Commit Graph

192 Commits

Author SHA1 Message Date
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
Zoltán Böszörményi
ddb3127f24 intel-graphics-compiler: LLVM 13 fixes
Also add CXXFLAGS=-Wno-error=deprecated-declarations, to turn
some deprecated LLVM API usage from warnings to errors.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-27 23:28:04 +08:00
Naveen Saini
23d702e38f llvm/10.0.0: apply ispc recommended patches
ISPC recommends building LLVM 10 with some additional patches to work
around some bugs in this version. Add those patches to our build as well.

https://github.com/ispc/ispc/tree/v1.16.1/llvm_patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-27 23:28:04 +08:00
Naveen Saini
e69b38c4b7 llvm/11.0.0: apply ispc recommended patches
ISPC recommends building LLVM 11 with some additional patches to work
around some bugs in this version. Add those patches to our build as well.

https://github.com/ispc/ispc/tree/v1.16.1/llvm_patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-27 23:28:04 +08:00
Naveen Saini
61efde5c41 llvm/12.0.0: apply ispc recommended patches
ISPC recommends building LLVM 12 with some additional patches to work
around some bugs in this version. Add those patches to our build as well.

https://github.com/ispc/ispc/tree/v1.16.1/llvm_patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-27 23:28:04 +08:00
Dongwon Kim
a41f5a188a compute-runtime: move up to the commit for ADL-P support
new compute-runtime code base including ADL-P support and
one more ADL-S sku with dev id of 0x4690

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-26 12:10:09 +08:00
Anuj Mittal
f4522647f2 onednn: upgrade 2.2.3 -> 2.3.2
Release notes:
https://github.com/oneapi-src/oneDNN/releases

License-Update: Copyright years updated

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-25 01:12:01 +08:00
Dongwon Kim
5b1776caeb intel-compute-runtime: upgrade 21.04.18912 -> 21.33.20678
Source move up to the latest that contains ADL-P support.

Also, this includes an extra patch to revert following commit
to avoid unit-test failure during compute-runtime build:

ab52c7023 Change builtin kernels compilation process

License-Update: LICENSE file has been removed and replaced by
LICENSE.md. License is still the same.

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-24 16:30:22 +08:00
Dongwon Kim
6f8e742aab intel-graphics-compiler: update IGC to 1.0.8365
Updating IGC to add ADL-P support.
All patches under files folder are rebased as well.

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-24 16:05:35 +08:00
Naveen Saini
6a628fa0b5 llvm/12.0.0: apply opencl-clang recommend patches
https://github.com/intel/opencl-clang/tree/ocl-open-120/patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-24 10:41:24 +08:00
Naveen Saini
5448b52ae6 llvm/11.0.0: apply opencl-clang recommend patches
https://github.com/intel/opencl-clang/tree/ocl-open-110/patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-24 10:41:24 +08:00
Naveen Saini
109fe96793 llvm/10.0.0: apply opencl-clang recommend patches
https://github.com/intel/opencl-clang/tree/ocl-open-100/patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-24 10:41:24 +08:00
Anuj Mittal
d716aee65c ispc: upgrade 1.16.0 -> 1.16.1
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-08-17 11:14:31 +08:00
Anuj Mittal
0584f63879 Convert to new override syntax
Use the convert-overrides.py to convert to new syntax and manually
fix some additional changes.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-07-31 17:47:03 +08:00
Naveen Saini
f808528a90 ispc: add recipe
Intel(R) Implicit SPMD Program Compiler (Intel(R) ISPC)

ispc is a compiler for a variant of the C programming language, with
extensions for single program, multiple data programming. Under the SPMD
model, the programmer writes a program that generally appears to be a
regular serial program, though the execution model is actually that a
number of program instances execute in parallel on the hardware.

https://ispc.github.io/downloads.html
https://github.com/ispc/ispc

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-07-03 22:48:10 +08:00
Naveen Saini
73a27c9d80 vc-intrinsics: update to latest commit
License.md file removed and copyright notice is added
to each source file header.
a94249a381

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-07-03 22:48:10 +08:00
Naveen Saini
b45786aa22 opencl-clang/12.0.0: update to latest commit
Drop patch which is not required anymore.

Allow to build with llvm-12 and higher versions.

Ref: 447798893e

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-06-18 13:16:56 +08:00
Naveen Saini
c1d9d6083e llvm-project-source: fix do_patch for llvm-12
Backported (opencl-clang) recommend patch for llvm-12[1].

[1]: 669f9ae8a2

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-06-18 13:16:43 +08:00
Naveen Saini
0d0324efd2 onednn: upgrade 2.2.2 -> 2.2.3
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-06-03 23:59:46 +08:00
Anuj Mittal
b07c91784c onednn: refresh patch
Refresh the gcc11 fix to avoid fuzz warnings.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-11 13:47:01 +08:00
Anuj Mittal
49d97ea0ac onednn: fix failures with gcc 11
Backport a patch to fix:
|  error: no match for 'operator!=' (operand types are 'const std:🧵:id' and 'const std:🧵:id')

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-07 15:57:51 +08:00
Anuj Mittal
922c44cb70 onednn: upgrade 2.2.1 -> 2.2.2
Release notes:
https://github.com/oneapi-src/oneDNN/releases/tag/v2.2.2

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-05-07 15:47:13 +08:00
Anuj Mittal
b3c29caf92 onednn: upgrade 2.1.1 -> 2.2.1
Release notes:
https://github.com/oneapi-src/oneDNN/releases/tag/v2.2.1

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-16 12:09:20 +08:00
Dongwon Kim
1a4adcb8b1 opencl-clang: move up to the version for igc-1.0.6646
Need to move up to newer commit for opencl-clang that matches
to the current igc (1.0.6466).

Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-09 10:38:36 +08:00
Naveen Saini
bdae07eceb llvm-project-source: backport OpenCL recommended patches
Updating SPIRV-LLVM-Translator srcrev to latest commits for
* llvm_releae_100
* llvm_release_110

Backport opencl-clang recommended llvm/clang patches.

llvm-10:
https://github.com/intel/opencl-clang/tree/ocl-open-100/patches

llvm-11:
https://github.com/intel/opencl-clang/tree/ocl-open-110/patches

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-08 10:56:20 +08:00
Anuj Mittal
4a92a7e95a intel-compute-runtime: remove DEPENDS on clang
This is not a direct dependency and is not required.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-01 13:30:35 +08:00
Naveen Saini
a766df8081 intel-graphics-compiler: upgrade 1.0.6083 -> 1.0.6410
Patches applied from Open PR#171, in order to build with llvm-12.
https://github.com/intel/intel-graphics-compiler/pull/171

Error logs:
(1)
|
/build/tmp/work/corei7-64-poky-linux/intel-graphics-compiler/1.0.6410-r0/git/IGC/Compiler/CISACodeGen/VariableReuseAnalysis.hpp:83:56:
error: 'unsigned int llvm::VectorType::getNumElements() const' is
deprecated: Calling this function via a base VectorType is deprecated.
Either call getElementCount() and handle the case where Scalable is true
or cast to FixedVectorType. [-Werror=deprecated-declarations]
|    83 |             NumElts = VTy ? (short)VTy->getNumElements() : 1;

Ref:867de151a5

(2)
|
/build/tmp/work/corei7-64-poky-linux/intel-graphics-compiler/1.0.6410-r0/git/IGC/common/igc_resourceDimTypes.h:69:23:
error: 'const class llvm::Module' has no member named 'getTypeByName'
|    69 |         return
module.getTypeByName(ResourceDimensionTypeName[resourceDimTypeId]);

Ref:
fe43168348

Update copyright year in headers in IGC Compiler and some format updates.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-01 13:30:35 +08:00
Naveen Saini
39457fee8e opencl-clang/12.0.0: add recipe
Build opencl-clang with llvm-12 and point to latest from ocl-open-120
branch.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-01 13:29:48 +08:00
Naveen Saini
9aecbb76e8 llvm-project-source: exclude for llvm-12
meta-clang now builds llvm-spiv-translator as an external project for
llvm12 so stop building it.

It still need to be built for llvm-10 and llvm-11 though.

Ref:
aa1ab889bc

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-04-01 13:28:51 +08:00
Naveen Saini
f30e749e89 onednn: upgrade 2.0 -> 2.1.1
LICENSE updated. Added 'Copyright 2020 Codeplay Software Limited'
Ref: 5d63af1b4a

LICENSE text removed from src/common/primitive_hashing.hpp.

Release notes:
https://github.com/oneapi-src/oneDNN/releases/tag/v2.1.1

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-03-24 14:58:31 +08:00
Naveen Saini
c96f9d1fdb intel-compute-runtime: upgrade 20.46.18421 -> 21.04.18912
Ref:
https://github.com/intel/compute-runtime/releases/tag/21.04.18912

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-02 23:10:43 +08:00
Naveen Saini
5d6513bae5 intel-graphics-compiler: upgrade 1.0.5435 -> 1.0.6083
Refreshed patch.
Drop VectorCompiler build config, which is not require anymore.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-02 23:10:43 +08:00
Naveen Saini
02e2f260a6 vc-intrinsics: update to include latest commits
It includes:
77974f5 Wrap getTypeByName() to build with ToT LLVM
2de2dd4 Mangle intrinsic names
017cfcd Added predication for genx_masked_gather.
5032643 Add gather4_masked_scaled2 and gather_masked_scaled2 intrinsics
a08fe5b Add internal llvm.genx.gaddr intrinsic for constant/global table
support
cf29e35 use a more strict version of cast operation in lowerUnmaskOps
d2a2184 Use standard installation directory variables
7cbfe2e Allow OCL types without address convert in reader
410f50d Fix twice application of writer adaptor
e42097e Add GENX_REWRITE_SEV environment variable for debug
ca68b87 Rewrite single element vectors before spirv
008db27 Removing some whitespaces
3b2b67f Correct docs on gather/scatter scaled instructions
9bba8b5 Delete legacy intrinsics
d684443 Add Instructions.h to llvmVCWrapper Add getNumElements func to
llvmVCWrapper
4d724e3 CMCallable attribute conversion in AdaptorCM
73b335b Add Alignment.h to llvmVCWrapper
04d4900 Ignore non-vc kernels in reader type translation
b3f075d Remove SPIRVMemoryModel setting in GenXSPIRVWriterAdaptor
eabcd20 Add jump_table intrinsic
82711ce Fix to make lit tests pass for llvm7: forward isVolatile arg
explicitly when creating load/store
6506440 add missing default initializer to CMSimdCFLower member
9a03e3e Fix for problem with incorrect MD in LLVM IR
4515d60 avoid returning potentially-unitialized value
414153d Fix for wrr predication if new value is a result of a bitcast
77974f5 (HEAD -> master, origin/master, origin/HEAD) Wrap
getTypeByName() to build with ToT LLVM
2de2dd4 Mangle intrinsic names
017cfcd Added predication for genx_masked_gather.
5032643 Add gather4_masked_scaled2 and gather_masked_scaled2 intrinsics
a08fe5b Add internal llvm.genx.gaddr intrinsic for constant/global table
support
cf29e35 use a more strict version of cast operation in lowerUnmaskOps
d2a2184 Use standard installation directory variables
7cbfe2e Allow OCL types without address convert in reader
410f50d Fix twice application of writer adaptor
e42097e Add GENX_REWRITE_SEV environment variable for debug
ca68b87 Rewrite single element vectors before spirv
008db27 Removing some whitespaces
3b2b67f Correct docs on gather/scatter scaled instructions
9bba8b5 Delete legacy intrinsics
d684443 Add Instructions.h to llvmVCWrapper Add getNumElements func to
llvmVCWrapper
4d724e3 CMCallable attribute conversion in AdaptorCM
73b335b Add Alignment.h to llvmVCWrapper
04d4900 Ignore non-vc kernels in reader type translation
b3f075d Remove SPIRVMemoryModel setting in GenXSPIRVWriterAdaptor
eabcd20 Add jump_table intrinsic
82711ce Fix to make lit tests pass for llvm7: forward isVolatile arg
explicitly when creating load/store
6506440 add missing default initializer to CMSimdCFLower member
9a03e3e Fix for problem with incorrect MD in LLVM IR
4515d60 avoid returning potentially-unitialized value
414153d Fix for wrr predication if new value is a result of a bitcast
23d4b41 Add SPIRV writer adaptor types translation
9eda835 Deduced number of channels under SIMD CFG for functions which
use  genx_replicate_mask attribute
3b3f9d9 Add llvm version to test features
e13f274 Fix wrong address space for sampler type in reader
5829ad6 Fix missing compatibility with old translator in
GenXSPIRVReaderAdaptor.cpp
3a287f5 Add GetOldStyleKernelMD function to GenXMetadata.h
60dec9a Uniform GenXMetadata.h with AdaptorsCommon.h
ec7de0b Move SPIRV-specific parameters to AdaptorsCommon.h
b869876 Use consume_front in SPIRV reader adaptor
2bb7a70 Fix SPIRV reader adaptor mistranslation of non-global pointers
40db2bb Add SPIRV reader adaptor types translation
65b7d2b Add more correct wrapper for global value address space
2e496ce Synchronize repository

Drop patch, which is already merged and avaialble.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-02 23:10:43 +08:00
Naveen Saini
d04876ff37 opencl-clang: update to include latest commits
It includes:
c67648d Merge pull request #226 from hewj03/ocl-open-110
7ff6cf2 Remove "spirv work-item builtin debug-info patch"
8353f4d Extend llvm_shutdown to fix ManagedStatic memleak
05fd5aa Merge pull request #220 from azabazno/opencl_30_nosvm_2
70f45fb Keep same error for 2.0
1aed7d7 OpenCL C 3.0 patch update: allow nosvm attribute for 3.0
dbddfc2 Merge pull request #214 from lwesiers/ocl-open-110
7fc8e28 Fix typo
0442aee Improved patching mechanism and printing logs

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-02 23:10:43 +08:00
Naveen Saini
134f7020f6 llvm-project-source: update to include latest commits
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-02 23:10:43 +08:00
Naveen Saini
09d2b6900e intel-graphics-compiler: set preferred LLVM version to 11.1.0
Ref:
67a7cad4bb

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-01 16:30:21 +08:00
Naveen Saini
3a376cfcb8 opencl-clang: set preferred LLVM version to 11.1.0
Ref:67a7cad4bb

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2021-02-01 16:30:21 +08:00
Anuj Mittal
5e6679fba3 onednn: upgrade 1.6.4 -> 2.0.0
License-Update: change in copyright years and third party programs.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-12-16 11:11:30 +08:00
Anuj Mittal
7d79beb509 intel-compute-runtime: upgrade 20.45.18403 -> 20.46.18421
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-11-27 15:32:10 +08:00
Anuj Mittal
a693b4d6b9 intel-compute-runtime: upgrade 20.40.18075 -> 20.40.18403
Release notes:
https://github.com/intel/compute-runtime/releases/tag/20.45.18403

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-11-21 00:09:14 +08:00
Anuj Mittal
05da12b766 intel-graphics-compiler: upgrade 1.0.5176 -> 1.0.5435
Release notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.5435

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-11-21 00:03:37 +08:00
Anuj Mittal
29aae3a0db Revert "intel-graphics-compiler: switch to nobranch"
This reverts commit 3cf8482e43.

The issues have since been fixed upstream and the tree has been
restored.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-11-12 12:03:21 +08:00
Naveen Saini
3cf8482e43 intel-graphics-compiler: switch to nobranch
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-11-05 13:00:56 +08:00
Naveen Saini
5a4d30c30d opencl-clang: update to release tag 11.0.0
For more info:
https://github.com/intel/opencl-clang/releases/tag/v11.0.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-11-05 11:18:25 +08:00
Naveen Saini
22b3b365b5 intel-graphics-compiler: disable vector compiler option
IGC has a copy of legacy spirv translator and additional
patcheset to produce spirv shared object (libSPIRVDLL.so) to
support Vector compiler.

But we build spirv externally and link, which does not provide spirv
shared object (libSPIRVDLL.so).

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-11-05 11:18:25 +08:00
Naveen Saini
bc6663d2ca llvm-project-source: update to release tag llvm 11.0.0
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-28 10:38:52 +08:00
Naveen Saini
006ab3bb4c vc-intrinsics: fix build with mulitlib
Fixes errors seen when multilib is turned on

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-28 10:38:52 +08:00
Anuj Mittal
4ee7bc0ab4 intel-compute-runtime: add libva to DEPENDS
libva is needed to have cl_intel_va_api_media_sharing [1] extension
enabled.

[1] https://github.com/intel/compute-runtime/blob/master/opencl/doc/cl_intel_va_api_media_sharing.md

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-23 14:19:09 +08:00
Anuj Mittal
4f9aa9cd83 compute-runtime: upgrade 20.33.17675 -> 20.40.18075
Release notes:
https://github.com/intel/compute-runtime/releases/tag/20.40.18075

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-15 13:19:43 +08:00
Anuj Mittal
a3ba71f4b9 igc: upgrade 1.0.4756 -> 1.0.5176
Include compatibility for both LLVM 10 and LLVM 11. Vector Compiler
fails to compile for LLVM 11 so disable the build for now.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-15 13:18:40 +08:00
Anuj Mittal
c265ab944f vc-intrinsics: update to latest
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-15 13:17:44 +08:00
Anuj Mittal
4958cf0852 opencl-clang: add recipe for LLVM 11
Point to latest for llvm 11 branch as there's no official release yet.
And, pick the version of opencl-clang based on LLVMVERSION.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-15 11:56:38 +08:00
Anuj Mittal
26de78f5fe llvm: fix build with LLVM11
Ensure that we can build with both dunfell (LLVM10) and current master
(LLVM11) of meta-clang. Look for LLVMVERSION set by meta-clang and
include relevant patches based on the version.

There's no official release for SPIRV-LLVM-Translator yet for LLVM11 so
pick the latest.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-15 11:55:42 +08:00
Anuj Mittal
be37967889 onednn: upgrade 1.5 -> 1.6.4
Release notes:
https://github.com/oneapi-src/oneDNN/releases/tag/v1.6.4

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-10-02 15:48:54 +08:00
Lee Chee Yang
a01cbe26e3 intel-graphics-compiler: improve src package reproducibility
Improve the reproducibility of intel-graphics-compiler-src by replacing
the absolute build path with relative one in bison compiled files.
The --file-prefix-map could only work on bison 3.7 onward so add it only
when bison is newer than 3.7.

│ │ │ -#ifndef
YY_CISA_YOCTO_POKY_MASTER_BUILD_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED
│ │ │ -# define
YY_CISA_YOCTO_POKY_MASTER_BUILD_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED
│ │ │ +#ifndef
YY_CISA_YOCTO_POKY_MASTER_BUILD_2_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED
│ │ │ +# define
YY_CISA_YOCTO_POKY_MASTER_BUILD_2_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED

Also suppress #line directives in scanner that have the build path:

│ │ │ -#line 2593
"/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/intel-graphics-compiler/1.0.4241-r0/build/IGC/visa/lex.CISA.cpp"
│ │ │ +#line 2593
"/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/intel-graphics-compiler/1.0.4241-r0/build/IGC/visa/lex.CISA.cpp"

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-24 08:50:39 +08:00
Anuj Mittal
254e3a79b3 Revert "intel-graphics-compiler: improve src package reproducibility"
This reverts commit c6ca760d24.

This breaks builds using meta-intel master with oe-core dunfell because
the bison option isn't available on older versions.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-18 07:54:23 +08:00
Anuj Mittal
a611a92e75 intel-compute-runtime: fix packaging
Make sure that level zero driver is also packaged properly and -dev
only gets the headers.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-11 15:31:46 +08:00
Lee Chee Yang
c6ca760d24 intel-graphics-compiler: improve src package reproducibility
Improve the reproducibility of intel-graphics-compiler-src by replacing
the absolute build path with relative one in bison compiled files.

│ │ │ -#ifndef
YY_CISA_YOCTO_POKY_MASTER_BUILD_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED
│ │ │ -# define
YY_CISA_YOCTO_POKY_MASTER_BUILD_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED
│ │ │ +#ifndef
YY_CISA_YOCTO_POKY_MASTER_BUILD_2_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED
│ │ │ +# define
YY_CISA_YOCTO_POKY_MASTER_BUILD_2_TMP_WORK_SKYLAKE_64_POKY_LINUX_INTEL_GRAPHICS_COMPILER_1_0_4241_R0_BUILD_IGC_VISA_CISA_TAB_HPP_INCLUDED

Also suppress #line directives in scanner that have the build path:

│ │ │ -#line 2593
"/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/intel-graphics-compiler/1.0.4241-r0/build/IGC/visa/lex.CISA.cpp"
│ │ │ +#line 2593
"/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/intel-graphics-compiler/1.0.4241-r0/build/IGC/visa/lex.CISA.cpp"

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-10 15:18:20 +08:00
Anuj Mittal
58ce85f09c intel-compute-runtime: add PACKAGECONFIG for level zero
Add a PACKAGECONFIG that can be enabled when level zero driver
is required to be built.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-04 08:52:45 +08:00
Naveen Saini
256c445c70 intel-compute-runtime: upgrade 20.27.17231 -> 20.33.17675
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-03 11:08:23 +08:00
Naveen Saini
4ea4dbbb43 intel-graphics-compiler: upgrade 1.0.4241 -> 1.0.4756
Release notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.4756

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-03 11:08:23 +08:00
Naveen Saini
6299adfca6 vc-intrinsics: add recipe
VC Intrinsics project contains a set of new intrinsics on top of core
LLVM IR instructions that represent SIMD semantics of a program
targeting GPU.

Ref:
https://github.com/intel/vc-intrinsics

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-09-03 11:08:23 +08:00
Naveen Saini
2c810a6a05 intel-graphics-compiler: drop llvm9/clang9 support
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
452634a53a opencl-clang: drop llvm9/clang9 support
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
ae7f71a65d llvm-project-source: drop llvm9 support
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
c5d1181064 llvm-project-source: apply llvm-patches for llvm10 as well
Patches from llvm-patches used by intel-compute-runtime as per release notes:
https://github.com/intel/compute-runtime/releases/tag/20.27.17231

llvm-patches:
0e35a4a02d

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
41e3a1b504 intel-compute-runtime: 20.24.17065 -> 20.27.17231
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
088dbccece intel-graphics-compiler: upgrade 1.0.4154 -> 1.0.4241
NOTICES.txt is updated and refactored. Added below:
Khronos Group - SPIRV-LLVM License
Khronos Group OpenCL Registry License

Dropped patch, which is not required anymore.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-07-22 12:32:46 +08:00
Naveen Saini
69abe5db6a intel-compute-runtime: upgrade 20.20.16837 -> 20.24.17065
Release notes:
https://github.com/intel/compute-runtime/releases/tag/20.24.17065

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-06-26 11:54:15 +08:00
Naveen Saini
cd220f66c4 intel-graphics-compiler: upgrade 1.0.4053 -> 1.0.4154
NOTICES.txt contains third party intellectual property (IP) notices for
the "Software".
=============================================================
LLVM Release License
libdrm License
libva License
GLSL License
Chromium License
libclc License
MesaLib License
spdlog License
tinyxml2 License
yaml-cpp License
Google WebM License
Khronos Vulkan Library License
Attribution 4.0 International
Creative Commons Attribution 4.0 International Public License
=============================================================

cmake install NOTICES.txt too under $libdir/igc/

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-06-26 11:54:15 +08:00
Anuj Mittal
013ef7ebea onednn: upgrade 1.4 -> 1.5
Remove patches that have been merged upstream.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-06-22 13:59:04 +08:00
Naveen Saini
7006412eb1 onednn: link to recommended opencl headers and loader
ocl-icd provides required libOpenCL.so library.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-06-11 08:49:10 +08:00
Naveen Saini
d5fb8c53d1 intel-compute-runtime: upgrade 20.15.16524 -> 20.20.16837
Release notes:
https://github.com/intel/compute-runtime/releases/tag/20.20.16837

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-28 19:02:57 +08:00
Naveen Saini
8e1c5395e8 intel-graphics-compiler: upgrade 1.0.3771 -> 1.0.4053
Release notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.4053

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-28 19:02:57 +08:00
Naveen Saini
281f03435e opencl-clang: upgrade 10.0.0-1 -> 10.0.0-2
More info:
https://github.com/intel/opencl-clang/releases/tag/v10.0.0-2

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-28 19:02:57 +08:00
Naveen Saini
c53cdd4c32 llvm-project-source: upgrade SPIRV-LLVM-Translator to latest commit
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-05-28 19:02:57 +08:00
Naveen Saini
b7c987b5fc intel-graphics-compiler: link to llvm conditionally
In order to use this recipe with zeus, link to llvm
based on LLVMVERSION.

In zeus release, LLVMVERSION points to 9.x.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-27 16:23:50 +08:00
Naveen Saini
517c9b2c50 opencl-clang: add recipe for 9.0.0 as well
opencl-clang project release branches links to
different LLVM versions. So, in order to use latest igc version
with both clang 10.x and 9.x, added seprated recipes.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-27 16:23:50 +08:00
Naveen Saini
d45a72dc4b llvm-project-source: allow to use with zeus release
In order to use latest opencl versions with zeus, carrying llvm9 specific
patches, and conditinally applying based on LLVMVERSION.

In zeus release, LLVMVERSION points to 9.x.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-27 16:23:50 +08:00
Anuj Mittal
9f65fd57fe onednn: add CMAKE_SKIP_RPATH
dunfell has a change in cmake class that forces cmake to use relative
RPATHs but when this recipe is used with zeus, we'd need to explicitly
make sure that binaries don't have absolute paths.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-24 08:22:20 +08:00