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>
This commit is contained in:
Yogesh Tyagi 2024-09-24 17:44:43 +05:30 committed by Anuj Mittal
parent 6162444a46
commit 474bdffd8b
No known key found for this signature in database
GPG Key ID: B749E1556041E1B2
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 894bab05efb447d249c9f0afdbf0ca62c82395c6 Mon Sep 17 00:00:00 2001
From: Mateusz Jablonski <mateusz.jablonski@intel.com>
Date: Tue, 22 Aug 2023 10:55:50 +0000
Subject: [PATCH] fix: add missing zero-initialization in StackVec class
Upstream-Status: Backport [https://github.com/intel/compute-runtime/commit/894bab05efb447d249c9f0afdbf0ca62c82395c6]
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
---
shared/source/utilities/stackvec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: git/shared/source/utilities/stackvec.h
===================================================================
--- git.orig/shared/source/utilities/stackvec.h
+++ git/shared/source/utilities/stackvec.h
@@ -431,7 +431,7 @@ class StackVec { // NOLINT(clang-analyze
DataType *onStackMem;
};
- alignas(alignof(DataType)) char onStackMemRawBytes[sizeof(DataType[onStackCaps])];
+ alignas(alignof(DataType)) char onStackMemRawBytes[sizeof(DataType[onStackCaps])]{};
SizeT onStackSize = 0U;
};

View File

@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9280143b568466d8fbe385f838078b93 \
file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b" file://third_party/opencl_headers/LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b"
SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=master \ SRC_URI = "git://github.com/intel/compute-runtime.git;protocol=https;branch=master \
file://0001-fix-add-missing-zero-initialization-in-StackVec-clas.patch \
" "
SRC_URI:append:class-target = "file://allow-to-find-cpp-generation-tool.patch \ SRC_URI:append:class-target = "file://allow-to-find-cpp-generation-tool.patch \