Skip to content

Commit 26b9829

Browse files
committed
[L0] Hook up multi-device compile entry points
Add the `urProgramBuildExp`, `urProgramCompileExp`, and `urProgramLinkExp` to the loader `ur_program_exp_dditable_t`. Also add `"ur_exp_multi_device_compile"` to the list of extensions supported by the L0 adapter, enables the SYCL RT to query support.
1 parent a42a607 commit 26b9829

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/adapters/level_zero/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
190190

191191
// Return supported for the UR command-buffer experimental feature
192192
SupportedExtensions += ("ur_exp_command_buffer ");
193+
// Return supported for the UR multi-device compile experimental feature
194+
SupportedExtensions += ("ur_exp_multi_device_compile ");
193195

194196
return ReturnValue(SupportedExtensions.c_str());
195197
}

source/adapters/level_zero/ur_interface_loader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetProgramExpProcAddrTable(
440440
if (UR_RESULT_SUCCESS != retVal) {
441441
return retVal;
442442
}
443-
pDdiTable->pfnBuildExp = nullptr;
444-
pDdiTable->pfnCompileExp = nullptr;
445-
pDdiTable->pfnLinkExp = nullptr;
443+
pDdiTable->pfnBuildExp = urProgramBuildExp;
444+
pDdiTable->pfnCompileExp = urProgramCompileExp;
445+
pDdiTable->pfnLinkExp = urProgramLinkExp;
446446
return retVal;
447447
}

0 commit comments

Comments
 (0)