From 0861322ba3c8ef4e998053a68437b4506793bcf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Plewa?= Date: Thu, 4 Dec 2025 16:13:41 +0100 Subject: [PATCH 1/2] [UR][offload] update urProgramBuildExp in offload adapter to new prototype --- unified-runtime/source/adapters/offload/program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unified-runtime/source/adapters/offload/program.cpp b/unified-runtime/source/adapters/offload/program.cpp index fa5246c8a7e58..68bca36bcc02c 100644 --- a/unified-runtime/source/adapters/offload/program.cpp +++ b/unified-runtime/source/adapters/offload/program.cpp @@ -174,7 +174,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramBuild(ur_context_handle_t, UR_APIEXPORT ur_result_t UR_APICALL urProgramBuildExp(ur_program_handle_t hProgram, uint32_t, ur_device_handle_t *, - const char *pOptions) { + ur_exp_program_flags_t, const char *pOptions) { // Do nothing, program is built upon creation if (pOptions && *pOptions) { hProgram->Error = "Liboffload doesn't support link options"; From fcc4162782ff94f1bbe4f3f228e3b00b0045b304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Plewa?= Date: Thu, 4 Dec 2025 16:32:52 +0100 Subject: [PATCH 2/2] [UR][offload]add support for SPIRV in offload adapter --- unified-runtime/source/adapters/offload/device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unified-runtime/source/adapters/offload/device.cpp b/unified-runtime/source/adapters/offload/device.cpp index 5ebe7170dcc48..0b0d5f4905cbe 100644 --- a/unified-runtime/source/adapters/offload/device.cpp +++ b/unified-runtime/source/adapters/offload/device.cpp @@ -456,6 +456,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceSelectBinary( ImageTarget = UR_DEVICE_BINARY_TARGET_NVPTX64; } else if (Backend == OL_PLATFORM_BACKEND_AMDGPU) { ImageTarget = UR_DEVICE_BINARY_TARGET_AMDGCN; + } else if (Backend == OL_PLATFORM_BACKEND_LEVEL_ZERO) { + ImageTarget = UR_DEVICE_BINARY_TARGET_SPIRV64; } for (uint32_t i = 0; i < NumBinaries; ++i) {