File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -728,9 +728,11 @@ void CompressedRTDeviceBinaryImage::Decompress() {
728728
729729 Bin->Format = ur::getBinaryImageFormat (Bin->BinaryStart , getSize ());
730730 Format = static_cast <ur::DeviceBinaryType>(Bin->Format );
731+
732+ m_IsCompressed = false ;
731733 };
732734
733- std::call_once (InitFlag , DecompressFunc);
735+ std::call_once (m_InitFlag , DecompressFunc);
734736}
735737
736738CompressedRTDeviceBinaryImage::~CompressedRTDeviceBinaryImage () {
Original file line number Diff line number Diff line change @@ -322,7 +322,8 @@ class CompressedRTDeviceBinaryImage : public RTDeviceBinaryImage {
322322 return m_ImageSize;
323323 }
324324
325- bool IsCompressed () const { return m_DecompressedData.get () == nullptr ; }
325+ bool IsCompressed () const { return m_IsCompressed; }
326+
326327 void print () const override {
327328 RTDeviceBinaryImage::print ();
328329 std::cerr << " COMPRESSED\n " ;
@@ -333,7 +334,8 @@ class CompressedRTDeviceBinaryImage : public RTDeviceBinaryImage {
333334 size_t m_ImageSize = 0 ;
334335
335336 // Flag to ensure decompression happens only once.
336- std::once_flag InitFlag;
337+ std::once_flag m_InitFlag;
338+ bool m_IsCompressed = true ;
337339};
338340#endif // SYCL_RT_ZSTD_AVAILABLE
339341
You can’t perform that action at this time.
0 commit comments