Skip to content

Commit cb40408

Browse files
authored
[UR][offload] Add support for Level zero in offload adapter (#20830)
1 parent f11d979 commit cb40408

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

unified-runtime/source/adapters/offload/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceSelectBinary(
456456
ImageTarget = UR_DEVICE_BINARY_TARGET_NVPTX64;
457457
} else if (Backend == OL_PLATFORM_BACKEND_AMDGPU) {
458458
ImageTarget = UR_DEVICE_BINARY_TARGET_AMDGCN;
459+
} else if (Backend == OL_PLATFORM_BACKEND_LEVEL_ZERO) {
460+
ImageTarget = UR_DEVICE_BINARY_TARGET_SPIRV64;
459461
}
460462

461463
for (uint32_t i = 0; i < NumBinaries; ++i) {

unified-runtime/source/adapters/offload/program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramBuild(ur_context_handle_t,
174174

175175
UR_APIEXPORT ur_result_t UR_APICALL
176176
urProgramBuildExp(ur_program_handle_t hProgram, uint32_t, ur_device_handle_t *,
177-
const char *pOptions) {
177+
ur_exp_program_flags_t, const char *pOptions) {
178178
// Do nothing, program is built upon creation
179179
if (pOptions && *pOptions) {
180180
hProgram->Error = "Liboffload doesn't support link options";

0 commit comments

Comments
 (0)