Skip to content

Commit 8e7b98d

Browse files
committed
Update interface loaders
Signed-off-by: Michael Aziz <michael.aziz@intel.com>
1 parent 1732c6b commit 8e7b98d

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

source/adapters/cuda/ur_interface_loader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetEnqueueExpProcAddrTable(
399399
return result;
400400
}
401401

402-
pDdiTable->pfnCooperativeKernelLaunchExp = nullptr;
402+
pDdiTable->pfnCooperativeKernelLaunchExp =
403+
urEnqueueCooperativeKernelLaunchExp;
403404

404405
return UR_RESULT_SUCCESS;
405406
}
@@ -411,7 +412,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetKernelExpProcAddrTable(
411412
return result;
412413
}
413414

414-
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp = nullptr;
415+
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp =
416+
urKernelSuggestMaxCooperativeGroupCountExp;
415417

416418
return UR_RESULT_SUCCESS;
417419
}

source/adapters/hip/ur_interface_loader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetEnqueueExpProcAddrTable(
369369
return result;
370370
}
371371

372-
pDdiTable->pfnCooperativeKernelLaunchExp = nullptr;
372+
pDdiTable->pfnCooperativeKernelLaunchExp =
373+
urEnqueueCooperativeKernelLaunchExp;
373374

374375
return UR_RESULT_SUCCESS;
375376
}
@@ -381,7 +382,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetKernelExpProcAddrTable(
381382
return result;
382383
}
383384

384-
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp = nullptr;
385+
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp =
386+
urKernelSuggestMaxCooperativeGroupCountExp;
385387

386388
return UR_RESULT_SUCCESS;
387389
}

source/adapters/level_zero/ur_interface_loader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetEnqueueExpProcAddrTable(
446446
return result;
447447
}
448448

449-
pDdiTable->pfnCooperativeKernelLaunchExp = nullptr;
449+
pDdiTable->pfnCooperativeKernelLaunchExp =
450+
urEnqueueCooperativeKernelLaunchExp;
450451

451452
return UR_RESULT_SUCCESS;
452453
}
@@ -458,7 +459,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetKernelExpProcAddrTable(
458459
return result;
459460
}
460461

461-
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp = nullptr;
462+
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp =
463+
urKernelSuggestMaxCooperativeGroupCountExp;
462464

463465
return UR_RESULT_SUCCESS;
464466
}

source/adapters/opencl/ur_interface_loader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetEnqueueExpProcAddrTable(
390390
return result;
391391
}
392392

393-
pDdiTable->pfnCooperativeKernelLaunchExp = nullptr;
393+
pDdiTable->pfnCooperativeKernelLaunchExp =
394+
urEnqueueCooperativeKernelLaunchExp;
394395

395396
return UR_RESULT_SUCCESS;
396397
}
@@ -402,7 +403,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetKernelExpProcAddrTable(
402403
return result;
403404
}
404405

405-
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp = nullptr;
406+
pDdiTable->pfnSuggestMaxCooperativeGroupCountExp =
407+
urKernelSuggestMaxCooperativeGroupCountExp;
406408

407409
return UR_RESULT_SUCCESS;
408410
}

0 commit comments

Comments
 (0)