Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/sycl' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
sarnex committed Dec 27, 2024
2 parents 37fa6c4 + 05670b2 commit 8e387ea
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions sycl/cmake/modules/UnifiedRuntimeTag.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# commit 232e62f5221d565ec40d051d3c640b836ca91244
# Merge: 76a96238 59b37e3f
# commit 93fc1331edfd5519ea1fab42a8b96abe9e53672f
# Merge: 259b67db d2c04518
# Author: aarongreig <aaron.greig@codeplay.com>
# Date: Mon Dec 23 18:26:58 2024 +0000
# Merge pull request #2498 from Bensuo/fabio/fix_l0_old_loader_no_translate
# Update usage of zeCommandListImmediateAppendCommandListsExp to use dlsym
set(UNIFIED_RUNTIME_TAG 232e62f5221d565ec40d051d3c640b836ca91244)
# Date: Thu Dec 26 16:52:33 2024 +0000
# Merge pull request #2402 from yingcong-wu/yc/1202-mmap-failure
# [DevASAN][CPU] bugfix for mmap return value check.
set(UNIFIED_RUNTIME_TAG 93fc1331edfd5519ea1fab42a8b96abe9e53672f)
12 changes: 6 additions & 6 deletions sycl/source/detail/compression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ZSTDCompressor {
public:
// Blob (de)compression do not assume format/structure of the input buffer.
// This function can be used in future for compression in on-disk cache.
static std::unique_ptr<char> CompressBlob(const char *src, size_t srcSize,
size_t &dstSize, int level) {
static std::unique_ptr<char[]> CompressBlob(const char *src, size_t srcSize,
size_t &dstSize, int level) {
auto &instance = GetSingletonInstance();

// Lazy initialize compression context.
Expand All @@ -61,7 +61,7 @@ class ZSTDCompressor {

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

if (!dstBuffer)
throw sycl::exception(sycl::make_error_code(sycl::errc::runtime),
Expand Down Expand Up @@ -93,8 +93,8 @@ class ZSTDCompressor {
return dstBufferSize;
}

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

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

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

if (!dstBuffer)
throw sycl::exception(sycl::make_error_code(sycl::errc::runtime),
Expand Down
2 changes: 1 addition & 1 deletion sycl/source/detail/device_binary_image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class CompressedRTDeviceBinaryImage : public RTDeviceBinaryImage {
}

private:
std::unique_ptr<char> m_DecompressedData;
std::unique_ptr<char[]> m_DecompressedData;
size_t m_ImageSize;
};
#endif // SYCL_RT_ZSTD_NOT_AVAIABLE
Expand Down
4 changes: 2 additions & 2 deletions sycl/test-e2e/Assert/assert_in_multiple_tus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// XFAIL: (opencl && gpu)
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/11364

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

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

0 comments on commit 8e387ea

Please sign in to comment.