Release notes:
https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.4053

Signed-off-by: Naveen Saini <[email protected]>
---
 .../0001-add-workaround-for-gcc-10-error.patch     | 39 ++++++++++++++++++++++
 ...3771.bb => intel-graphics-compiler_1.0.4053.bb} |  3 +-
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 
dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-add-workaround-for-gcc-10-error.patch
 rename 
dynamic-layers/clang-layer/recipes-opencl/igc/{intel-graphics-compiler_1.0.3771.bb
 => intel-graphics-compiler_1.0.4053.bb} (91%)

diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-add-workaround-for-gcc-10-error.patch
 
b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-add-workaround-for-gcc-10-error.patch
new file mode 100644
index 0000000..ae8ccbf
--- /dev/null
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-add-workaround-for-gcc-10-error.patch
@@ -0,0 +1,39 @@
+From 8435bfb432282bdb900492f479233d2772f57f7c Mon Sep 17 00:00:00 2001
+From: 8tab <[email protected]>
+Date: Thu, 21 May 2020 14:21:58 +0200
+Subject: [PATCH] Add workaround for gcc 10 internal compiler error
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+There is a regression in recent gcc 
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95241),
+that make IGC fail to compile:
+In file included from 
/home/tab/dev/external/oneapi/igc/visa/iga/IGALibrary/Models/Models.cpp:7:
+/home/tab/dev/external/oneapi/igc/visa/iga/IGALibrary/Models/bxml/Model7P5.hpp:1258:34:
   in ‘constexpr’ expansion of ‘iga::Field(((const char*)"MathFC"), 24, 4)’
+/home/tab/dev/external/oneapi/igc/visa/iga/IGALibrary/Models/bxml/Model7P5.hpp:2085:5:
 internal compiler error: in tree_to_uhwi, at tree.h:4519
+ 2085 |     };
+      |     ^
+
+Upstream-Status: Submitted 
[https://github.com/intel/intel-graphics-compiler/pull/135]
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ visa/iga/IGALibrary/Backend/Native/Field.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/visa/iga/IGALibrary/Backend/Native/Field.hpp 
b/visa/iga/IGALibrary/Backend/Native/Field.hpp
+index 4b97280b..04855576 100644
+--- a/visa/iga/IGALibrary/Backend/Native/Field.hpp
++++ b/visa/iga/IGALibrary/Backend/Native/Field.hpp
+@@ -150,8 +150,8 @@ namespace iga
+         // a simple encoded field (single contiguous)
+         constexpr Field(const char *_name, int offset, int length)
+             : name(_name)
+-            , fragments{Fragment(_name, offset, length)}
+         {
++            fragments[0] = Fragment(_name, offset, length);
+         }
+         // a zero fill field or must-be-zero field
+         constexpr Field(const char *_name,             int length,
+-- 
+2.17.1
+
diff --git 
a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb
 
b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.4053.bb
similarity index 91%
rename from 
dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb
rename to 
dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.4053.bb
index 93484c4..11fb2b8 100644
--- 
a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.3771.bb
+++ 
b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.4053.bb
@@ -9,9 +9,10 @@ LIC_FILES_CHKSUM = 
"file://IGC/BiFModule/Implementation/ExternalLibraries/libclc
 
 SRC_URI = "git://github.com/intel/intel-graphics-compiler.git;protocol=https; \
            file://0001-skip-execution-of-ElfPackager.patch \
+           file://0001-add-workaround-for-gcc-10-error.patch \
           "
 
-SRCREV = "577887bf74c51a6084058836720fe58f8c35ca58"
+SRCREV = "bd171d27a65dd82a0966f54f012b113e2796d87e"
 
 S = "${WORKDIR}/git"
 
-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#6569): 
https://lists.yoctoproject.org/g/meta-intel/message/6569
Mute This Topic: https://lists.yoctoproject.org/mt/74518507/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to