Skip to content

Commit 933edf3

Browse files
authored
[SYCL] Fix assert unit test warning (#13738)
This value is the size of the data associated with the property, but for `PI_PROPERTY_TYPE_UINT32`, the data is always `nullptr` so this should be 0. I suspect the initial patch meant to construct a vector of 4 values of 0, but that initializer list construct a vector of 2 values with 4 and 0 instead. Should fix: #13737
1 parent 59e8ee7 commit 933edf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/unittests/helpers/PiImage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ inline void setKernelUsesAssert(const std::vector<std::string> &Names,
392392
PiPropertySet &Set) {
393393
PiArray<PiProperty> Value;
394394
for (const std::string &N : Names)
395-
Value.push_back({N, {4, 0}, PI_PROPERTY_TYPE_UINT32});
395+
Value.push_back({N, {0, 0, 0, 0}, PI_PROPERTY_TYPE_UINT32});
396396
Set.insert(__SYCL_PI_PROPERTY_SET_SYCL_ASSERT_USED, std::move(Value));
397397
}
398398

0 commit comments

Comments
 (0)