Skip to content

Commit 8e387ea

Browse files
committed
Merge remote-tracking branch 'upstream/sycl' into HEAD
2 parents 37fa6c4 + 05670b2 commit 8e387ea

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# commit 232e62f5221d565ec40d051d3c640b836ca91244
2-
# Merge: 76a96238 59b37e3f
1+
# commit 93fc1331edfd5519ea1fab42a8b96abe9e53672f
2+
# Merge: 259b67db d2c04518
33
# Author: aarongreig <[email protected]>
4-
# Date: Mon Dec 23 18:26:58 2024 +0000
5-
# Merge pull request #2498 from Bensuo/fabio/fix_l0_old_loader_no_translate
6-
# Update usage of zeCommandListImmediateAppendCommandListsExp to use dlsym
7-
set(UNIFIED_RUNTIME_TAG 232e62f5221d565ec40d051d3c640b836ca91244)
4+
# Date: Thu Dec 26 16:52:33 2024 +0000
5+
# Merge pull request #2402 from yingcong-wu/yc/1202-mmap-failure
6+
# [DevASAN][CPU] bugfix for mmap return value check.
7+
set(UNIFIED_RUNTIME_TAG 93fc1331edfd5519ea1fab42a8b96abe9e53672f)

sycl/source/detail/compression.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class ZSTDCompressor {
4141
public:
4242
// Blob (de)compression do not assume format/structure of the input buffer.
4343
// This function can be used in future for compression in on-disk cache.
44-
static std::unique_ptr<char> CompressBlob(const char *src, size_t srcSize,
45-
size_t &dstSize, int level) {
44+
static std::unique_ptr<char[]> CompressBlob(const char *src, size_t srcSize,
45+
size_t &dstSize, int level) {
4646
auto &instance = GetSingletonInstance();
4747

4848
// Lazy initialize compression context.
@@ -61,7 +61,7 @@ class ZSTDCompressor {
6161

6262
// Get maximum size of the compressed buffer and allocate it.
6363
auto dstBufferSize = ZSTD_compressBound(srcSize);
64-
auto dstBuffer = std::unique_ptr<char>(new char[dstBufferSize]);
64+
auto dstBuffer = std::make_unique<char[]>(dstBufferSize);
6565

6666
if (!dstBuffer)
6767
throw sycl::exception(sycl::make_error_code(sycl::errc::runtime),
@@ -93,8 +93,8 @@ class ZSTDCompressor {
9393
return dstBufferSize;
9494
}
9595

96-
static std::unique_ptr<char> DecompressBlob(const char *src, size_t srcSize,
97-
size_t &dstSize) {
96+
static std::unique_ptr<char[]> DecompressBlob(const char *src, size_t srcSize,
97+
size_t &dstSize) {
9898
auto &instance = GetSingletonInstance();
9999

100100
// Lazy initialize decompression context.
@@ -116,7 +116,7 @@ class ZSTDCompressor {
116116
auto dstBufferSize = GetDecompressedSize(src, srcSize);
117117

118118
// Allocate buffer for decompressed data.
119-
auto dstBuffer = std::unique_ptr<char>(new char[dstBufferSize]);
119+
auto dstBuffer = std::make_unique<char[]>(dstBufferSize);
120120

121121
if (!dstBuffer)
122122
throw sycl::exception(sycl::make_error_code(sycl::errc::runtime),

sycl/source/detail/device_binary_image.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class CompressedRTDeviceBinaryImage : public RTDeviceBinaryImage {
306306
}
307307

308308
private:
309-
std::unique_ptr<char> m_DecompressedData;
309+
std::unique_ptr<char[]> m_DecompressedData;
310310
size_t m_ImageSize;
311311
};
312312
#endif // SYCL_RT_ZSTD_NOT_AVAIABLE

sycl/test-e2e/Assert/assert_in_multiple_tus.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// XFAIL: (opencl && gpu)
1010
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/11364
1111

12-
// UNSUPPORTED: gpu-intel-dg2
13-
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/15029
12+
// Test requires at least this version of the Intel GPU driver on Arc.
13+
// REQUIRES-INTEL-DRIVER: lin: 31294
1414

1515
// RUN: %{build} -DSYCL_FALLBACK_ASSERT=1 -I %S/Inputs %S/Inputs/kernels_in_file2.cpp -o %t.out
1616
// RUN: %{run} %t.out &> %t.txt ; FileCheck %s --input-file %t.txt %if fpga %{ --check-prefix=CHECK-ACC %}

0 commit comments

Comments
 (0)