File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -729,7 +729,7 @@ void CompressedRTDeviceBinaryImage::Decompress() {
729729 Bin->Format = ur::getBinaryImageFormat (Bin->BinaryStart , getSize ());
730730 Format = static_cast <ur::DeviceBinaryType>(Bin->Format );
731731
732- m_IsCompressed = false ;
732+ m_IsCompressed. store ( false ) ;
733733 };
734734
735735 std::call_once (m_InitFlag, DecompressFunc);
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ class CompressedRTDeviceBinaryImage : public RTDeviceBinaryImage {
322322 return m_ImageSize;
323323 }
324324
325- bool IsCompressed () const { return m_IsCompressed; }
325+ bool IsCompressed () const { return m_IsCompressed. load () ; }
326326
327327 void print () const override {
328328 RTDeviceBinaryImage::print ();
@@ -335,7 +335,7 @@ class CompressedRTDeviceBinaryImage : public RTDeviceBinaryImage {
335335
336336 // Flag to ensure decompression happens only once.
337337 std::once_flag m_InitFlag;
338- bool m_IsCompressed = true ;
338+ std::atomic< bool > m_IsCompressed{ true } ;
339339};
340340#endif // SYCL_RT_ZSTD_AVAILABLE
341341
You can’t perform that action at this time.
0 commit comments