From b7dad1dd5474986f10ee0bc965e3db20fb2ae3fb Mon Sep 17 00:00:00 2001 From: rbanka1 Date: Mon, 11 May 2026 16:48:22 +0200 Subject: [PATCH] L0 testing on BMG + skip failure tests --- .github/workflows/ur-precommit.yml | 3 +++ .../conformance/device/urDeviceCreateWithNativeHandle.cpp | 2 ++ .../test/conformance/device/urDeviceGetSelected.cpp | 2 ++ .../enqueue/urEnqueueKernelLaunchWithArgsExp.cpp | 7 ++++--- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ur-precommit.yml b/.github/workflows/ur-precommit.yml index 448eca26f7ac8..403ac4d285826 100644 --- a/.github/workflows/ur-precommit.yml +++ b/.github/workflows/ur-precommit.yml @@ -70,6 +70,9 @@ jobs: runner: UR_L0 other_adapter: NATIVE_CPU image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN + - name: L0_V2 + runner: UR_L0_BMG + image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN - name: CUDA runner: UR_CUDA image_options: -u 1001 --privileged --cap-add SYS_ADMIN --gpus all diff --git a/unified-runtime/test/conformance/device/urDeviceCreateWithNativeHandle.cpp b/unified-runtime/test/conformance/device/urDeviceCreateWithNativeHandle.cpp index 61846c8fb8822..e2dec3e0adc76 100644 --- a/unified-runtime/test/conformance/device/urDeviceCreateWithNativeHandle.cpp +++ b/unified-runtime/test/conformance/device/urDeviceCreateWithNativeHandle.cpp @@ -9,6 +9,7 @@ using urDeviceCreateWithNativeHandleTest = uur::urDeviceTest; UUR_INSTANTIATE_DEVICE_TEST_SUITE(urDeviceCreateWithNativeHandleTest); TEST_P(urDeviceCreateWithNativeHandleTest, Success) { + UUR_KNOWN_FAILURE_ON(uur::LevelZeroV2{}); ur_native_handle_t native_handle = 0; UUR_ASSERT_SUCCESS_OR_UNSUPPORTED( @@ -33,6 +34,7 @@ TEST_P(urDeviceCreateWithNativeHandleTest, Success) { TEST_P(urDeviceCreateWithNativeHandleTest, SuccessWithExplicitUnOwnedNativeHandle) { + UUR_KNOWN_FAILURE_ON(uur::LevelZeroV2{}); ur_native_handle_t native_handle = 0; UUR_ASSERT_SUCCESS_OR_UNSUPPORTED( urDeviceGetNativeHandle(device, &native_handle)); diff --git a/unified-runtime/test/conformance/device/urDeviceGetSelected.cpp b/unified-runtime/test/conformance/device/urDeviceGetSelected.cpp index 211234ae435a9..1461f044f8877 100644 --- a/unified-runtime/test/conformance/device/urDeviceGetSelected.cpp +++ b/unified-runtime/test/conformance/device/urDeviceGetSelected.cpp @@ -108,6 +108,7 @@ TEST_P(urDeviceGetSelectedTest, SuccessSelected_StarColonStar) { } TEST_P(urDeviceGetSelectedTest, SuccessSelected_StarColonZero) { + UUR_KNOWN_FAILURE_ON(uur::LevelZeroV2{}); uur::set_env("ONEAPI_DEVICE_SELECTOR", "*:0"); uint32_t count = 0; ASSERT_SUCCESS( @@ -153,6 +154,7 @@ TEST_P(urDeviceGetSelectedTest, SuccessSelected_SelectAndDiscard) { TEST_P(urDeviceGetSelectedTest, SuccessSelected_SelectSomethingAndDiscardSomethingElse) { + UUR_KNOWN_FAILURE_ON(uur::LevelZeroV2{}); uur::set_env("ONEAPI_DEVICE_SELECTOR", "*:0;!*:1"); uint32_t count = 0; ASSERT_SUCCESS( diff --git a/unified-runtime/test/conformance/enqueue/urEnqueueKernelLaunchWithArgsExp.cpp b/unified-runtime/test/conformance/enqueue/urEnqueueKernelLaunchWithArgsExp.cpp index af20ea0dbd9af..be7eb9d74210c 100644 --- a/unified-runtime/test/conformance/enqueue/urEnqueueKernelLaunchWithArgsExp.cpp +++ b/unified-runtime/test/conformance/enqueue/urEnqueueKernelLaunchWithArgsExp.cpp @@ -55,9 +55,10 @@ UUR_INSTANTIATE_DEVICE_TEST_SUITE_MULTI_QUEUE( // Note: Due to an issue with HIP, the subgroup test is not generated struct urEnqueueKernelLaunchKernelSubGroupTest : uur::urKernelExecutionTest { void SetUp() override { - // Subgroup size of 8 isn't supported on the Data Center GPU Max - UUR_KNOWN_FAILURE_ON(uur::HIP{}, uur::LevelZero{"Data Center GPU Max"}, - uur::LevelZeroV2{"Data Center GPU Max"}); + // Subgroup size of 8 isn't supported on the Data Center GPU Max or Battlemage Arc + UUR_KNOWN_FAILURE_ON(uur::HIP{}, + uur::LevelZero{"Data Center GPU Max", "Arc(TM) B"}, + uur::LevelZeroV2{"Data Center GPU Max", "Arc(TM) B"}); program_name = "subgroup"; UUR_RETURN_ON_FATAL_FAILURE(urKernelExecutionTest::SetUp());