Commit Graph

26 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
f8771831bb intel-graphics-compiler: upgrade 1.0.2714.1 -> 1.0.3151
Dropped the patch which is already upstream.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-11 14:32:30 +08:00
Naveen Saini
6dd594fba5 intel-graphics-compiler: upgrade 1.0.11 -> 1.0.2714.1
Dropped patch which is already merged in this release.

More details can be found at:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.2714.1

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-12-27 10:01:59 +08:00
Naveen Saini
b9b473a259 intel-graphics-compiler: upgrade 1.0.6 -> 1.0.11
Removed patches which are not required anymore.
Updated python version to 3.

In this release, fixed issue/improvements can be
found here:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.11

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-09-13 16:17:22 +08:00
Anuj Mittal
fca3176ec1 igc: build for native too
* Use clang and lld for native builds to remain in sync with clang layer.

* fix the license field to point to correct block of license in source
file.

* Include patches to ignore warnings being marked as errors when building
with clang and to fix an issue with inclusion of debug functions when
NDEBUG is defined.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-08-21 12:27:06 +08:00
Anuj Mittal
03f2176249 intel-graphics-compiler: build only when clang layer is included
igc needs components from LLVM and clang to be built. Move it to
dynamic-layers/clang-layer so world builds don't fail when clang layer
is not available.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-07-31 21:03:31 +08:00