From ea2d26da65df1b58879050725e9e94bfd1834434 Mon Sep 17 00:00:00 2001 From: Krzysztof Swiecicki Date: Wed, 9 Apr 2025 16:04:59 +0000 Subject: [PATCH 1/3] [UR][L0] Enable async api device support --- unified-runtime/source/adapters/level_zero/device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unified-runtime/source/adapters/level_zero/device.cpp b/unified-runtime/source/adapters/level_zero/device.cpp index 0a2b640695f4d..292fee23c5457 100644 --- a/unified-runtime/source/adapters/level_zero/device.cpp +++ b/unified-runtime/source/adapters/level_zero/device.cpp @@ -1227,6 +1227,8 @@ ur_result_t urDeviceGetInfo( return ReturnValue(true); case UR_DEVICE_INFO_MULTI_DEVICE_COMPILE_SUPPORT_EXP: return ReturnValue(true); + case UR_DEVICE_INFO_ASYNC_USM_ALLOCATIONS_SUPPORT_EXP: + return ReturnValue(true); case UR_DEVICE_INFO_CURRENT_CLOCK_THROTTLE_REASONS: { ur_device_throttle_reasons_flags_t ThrottleReasons = 0; if (!ParamValue) { From b0fbac906cb3eef31edfa7875e2020bcfa09c3ae Mon Sep 17 00:00:00 2001 From: Krzysztof Swiecicki Date: Wed, 9 Apr 2025 16:05:18 +0000 Subject: [PATCH 2/3] [SYCL][L0] Expect AsyncAlloc/device/memory_pool.cpp fail Currently, L0 adapter does not support urUSMPoolGetInfoExp and urUSMPoolSetInfoExp functions used in this test. --- sycl/test-e2e/AsyncAlloc/device/memory_pool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sycl/test-e2e/AsyncAlloc/device/memory_pool.cpp b/sycl/test-e2e/AsyncAlloc/device/memory_pool.cpp index 34ba69f85dae4..4254672643863 100644 --- a/sycl/test-e2e/AsyncAlloc/device/memory_pool.cpp +++ b/sycl/test-e2e/AsyncAlloc/device/memory_pool.cpp @@ -1,6 +1,9 @@ // RUN: %{build} -o %t.out // RUN: %{run} %t.out +// XFAIL: level_zero +// XFAIL-TRACKER: https://github.com/intel/llvm/issues/17772 + #include #include #include From 095114920e382fb13e2891e7485fedc3b0caca59 Mon Sep 17 00:00:00 2001 From: Krzysztof Swiecicki Date: Thu, 10 Apr 2025 14:18:07 +0000 Subject: [PATCH 3/3] [SYCL][L0 v2] Mark v2 L0 adapter as unsupported for async alloc tests L0 v2 adapter does not support the async api specification. --- sycl/test-e2e/AsyncAlloc/lit.local.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sycl/test-e2e/AsyncAlloc/lit.local.cfg b/sycl/test-e2e/AsyncAlloc/lit.local.cfg index 2d2d5495be232..1d24729f15d87 100644 --- a/sycl/test-e2e/AsyncAlloc/lit.local.cfg +++ b/sycl/test-e2e/AsyncAlloc/lit.local.cfg @@ -1 +1,3 @@ config.required_features += ['aspect-ext_oneapi_async_memory_alloc'] +# V2 adapter does not support async alloc api yet +config.unsupported_features += ['level_zero_v2_adapter']