Skip to content

Commit 43eedd1

Browse files
authored
[DevSAN] Fix incorrect dimension when construct launchinfo (#20558)
1 parent 9398ef5 commit 43eedd1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

unified-runtime/source/loader/layers/sanitizer/asan/asan_ddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueKernelLaunchWithArgsExp(
17691769
}
17701770

17711771
LaunchInfo LaunchInfo(GetContext(hQueue), GetDevice(hQueue), pGlobalWorkSize,
1772-
pLocalWorkSize, pGlobalWorkOffset, 3);
1772+
pLocalWorkSize, pGlobalWorkOffset, workDim);
17731773
UR_CALL(LaunchInfo.Data.syncToDevice(hQueue));
17741774

17751775
UR_CALL(getAsanInterceptor()->preLaunchKernel(hKernel, hQueue, LaunchInfo));

unified-runtime/source/loader/layers/sanitizer/msan/msan_ddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ ur_result_t urEnqueueKernelLaunchWithArgsExp(
19331933

19341934
USMLaunchInfo LaunchInfo(GetContext(hQueue), GetDevice(hQueue),
19351935
pGlobalWorkSize, pLocalWorkSize, pGlobalWorkOffset,
1936-
3);
1936+
workDim);
19371937
UR_CALL(LaunchInfo.initialize());
19381938

19391939
UR_CALL(getMsanInterceptor()->preLaunchKernel(hKernel, hQueue, LaunchInfo));

unified-runtime/source/loader/layers/sanitizer/tsan/tsan_ddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ ur_result_t urEnqueueKernelLaunchWithArgsExp(
14561456
}
14571457

14581458
LaunchInfo LaunchInfo(GetContext(hQueue), GetDevice(hQueue), pGlobalWorkSize,
1459-
pLocalWorkSize, pGlobalWorkOffset, 3);
1459+
pLocalWorkSize, pGlobalWorkOffset, workDim);
14601460

14611461
UR_CALL(getTsanInterceptor()->preLaunchKernel(hKernel, hQueue, LaunchInfo));
14621462

0 commit comments

Comments
 (0)