@@ -28,7 +28,8 @@ constexpr int kMemBufferRedzoneMagic = (char)0x84;
28
28
constexpr auto kSPIR_AsanShadowMemoryGlobalStart =
29
29
" __AsanShadowMemoryGlobalStart" ;
30
30
constexpr auto kSPIR_AsanShadowMemoryGlobalEnd = " __AsanShadowMemoryGlobalEnd" ;
31
- constexpr auto kSPIR_AsanShadowMemoryLocalStart = " __AsanShadowMemoryLocalStart" ;
31
+ constexpr auto kSPIR_AsanShadowMemoryLocalStart =
32
+ " __AsanShadowMemoryLocalStart" ;
32
33
constexpr auto kSPIR_AsanShadowMemoryLocalEnd = " __AsanShadowMemoryLocalEnd" ;
33
34
34
35
constexpr auto kSPIR_DeviceType = " __DeviceType" ;
@@ -262,7 +263,7 @@ void SanitizerInterceptor::postLaunchKernel(ur_kernel_handle_t Kernel,
262
263
263
264
// If kernel has defined SPIR_DeviceSanitizerReportMem, then we try to read it
264
265
// to host, but it's okay that it isn't defined
265
- // FIXME: We must use block operation here
266
+ // FIXME: We must use block operation here, until we support urEventSetCallback
266
267
auto Result = context.urDdiTable .Enqueue .pfnDeviceGlobalVariableRead (
267
268
Queue, Program, kSPIR_DeviceSanitizerReportMem , true ,
268
269
sizeof (LaunchInfo.SPIR_DeviceSanitizerReportMem ), 0 ,
@@ -319,7 +320,8 @@ ur_result_t SanitizerInterceptor::allocShadowMemory(
319
320
// / ? : 0x1000_0000_0000 ~ 0x1fff_ffff_ffff
320
321
// / Device USM : 0x2000_0000_0000 ~ 0x3fff_ffff_ffff
321
322
constexpr size_t SHADOW_SIZE = 1ULL << 46 ;
322
- // FIXME: Currently, level-zero doesn't create independent VAs for each contexts
323
+ // FIXME: Currently, Level-Zero doesn't create independent VAs for each contexts,
324
+ // which will cause out-of-resource error when users use multiple contexts
323
325
static uptr ShadowOffset, ShadowOffsetEnd;
324
326
325
327
if (!ShadowOffset) {
0 commit comments