File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -921,12 +921,12 @@ __asan_set_private_base(__SYCL_PRIVATE__ void *ptr) {
921
921
launch_info->PrivateBase == 0 )
922
922
return ;
923
923
// Only set on the first sub-group item
924
- if (__spirv_BuiltInSubgroupLocalInvocationId != 0 )
925
- return ;
926
- const size_t sid = SubGroupLinearId ();
927
- launch_info->PrivateBase [sid] = (uptr)ptr;
924
+ if (__spirv_BuiltInSubgroupLocalInvocationId == 0 ) {
925
+ const size_t sid = SubGroupLinearId ();
926
+ launch_info->PrivateBase [sid] = (uptr)ptr;
927
+ ASAN_DEBUG (__spirv_ocl_printf (__asan_print_private_base, sid, ptr));
928
+ }
928
929
SubGroupBarrier ();
929
- ASAN_DEBUG (__spirv_ocl_printf (__asan_print_private_base, sid, ptr));
930
930
}
931
931
932
932
#endif // __SPIR__ || __SPIRV__
Original file line number Diff line number Diff line change @@ -592,12 +592,12 @@ __msan_set_private_base(__SYCL_PRIVATE__ void *ptr) {
592
592
GetMsanLaunchInfo->PrivateBase == 0 )
593
593
return ;
594
594
// Only set on the first sub-group item
595
- if (__spirv_BuiltInSubgroupLocalInvocationId != 0 )
596
- return ;
597
- const size_t sid = SubGroupLinearId ();
598
- GetMsanLaunchInfo->PrivateBase [sid] = (uptr)ptr;
595
+ if (__spirv_BuiltInSubgroupLocalInvocationId == 0 ) {
596
+ const size_t sid = SubGroupLinearId ();
597
+ GetMsanLaunchInfo->PrivateBase [sid] = (uptr)ptr;
598
+ MSAN_DEBUG (__spirv_ocl_printf (__msan_print_private_base, sid, ptr));
599
+ }
599
600
SubGroupBarrier ();
600
- MSAN_DEBUG (__spirv_ocl_printf (__msan_print_private_base, sid, ptr));
601
601
}
602
602
603
603
static __SYCL_CONSTANT__ const char __msan_print_strided_copy_unsupport_type[] =
You can’t perform that action at this time.
0 commit comments