Skip to content

Commit ca8e651

Browse files
committed
fix build
1 parent 5eafafe commit ca8e651

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/loader/layers/sanitizer/ur_sanddi.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueKernelLaunch(
214214

215215
context.logger.debug("==== urEnqueueKernelLaunch");
216216

217-
LaunchInfo LaunchInfo(GetContext(hQueue), pGlobalWorkSize, pLocalWorkSize,
218-
pGlobalWorkOffset, workDim);
217+
USMLaunchInfo LaunchInfo(GetContext(hQueue), GetDevice(hQueue),
218+
pGlobalWorkSize, pLocalWorkSize, pGlobalWorkOffset,
219+
workDim);
219220

220221
UR_CALL(context.interceptor->preLaunchKernel(hKernel, hQueue, LaunchInfo));
221222

@@ -225,8 +226,8 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueKernelLaunch(
225226
pLocalWorkSize, numEventsInWaitList, phEventWaitList, &hEvent);
226227

227228
if (result == UR_RESULT_SUCCESS) {
228-
UR_CALL(context.interceptor->postLaunchKernel(hKernel, hQueue, hEvent,
229-
LaunchInfo));
229+
UR_CALL(
230+
context.interceptor->postLaunchKernel(hKernel, hQueue, LaunchInfo));
230231
}
231232

232233
if (phEvent) {

0 commit comments

Comments
 (0)