Skip to content

Commit

Permalink
Disable crashing l0 tests
Browse files Browse the repository at this point in the history
See: #2103
  • Loading branch information
RossBrunton committed Sep 20, 2024
1 parent ed85c3e commit 305c756
Show file tree
Hide file tree
Showing 16 changed files with 72 additions and 4 deletions.
22 changes: 21 additions & 1 deletion test/conformance/enqueue/enqueue_adapter_level_zero.match
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{{OPT}}urEnqueueKernelLaunchKernelSubGroupTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
{{OPT}}urEnqueueKernelLaunchUSMLinkedList.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}__UsePoolEnabled
{{OPT}}urEnqueueKernelLaunchUSMLinkedList.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}__UsePoolDisabled
{{OPT}}urEnqueueKernelLaunchIncrementMultiDeviceMultiThreadTest.Success/NoUseEventsNoQueuePerThread
{{OPT}}urEnqueueMemBufferCopyRectTestWithParam.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___copy_2d_3d
{{OPT}}urEnqueueMemBufferCopyRectTestWithParam.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___copy_3d_2d
{{OPT}}urEnqueueMemBufferReadRectTestWithParam.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___write_non_zero_offsets_2D
Expand All @@ -22,4 +23,23 @@
{{OPT}}urEnqueueMemImageReadTest.InvalidOrigin1D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
{{OPT}}urEnqueueMemImageReadTest.InvalidOrigin2D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
{{OPT}}urEnqueueMemImageReadTest.InvalidOrigin3D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
{{Segmentation fault|Aborted}}
urEnqueueMemImageWriteTest.InvalidOrigin1D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueMemImageWriteTest.InvalidOrigin2D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueMemImageWriteTest.InvalidOrigin3D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueMemImageWriteTest.InvalidRegion1D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueMemImageWriteTest.InvalidRegion2D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueMemImageWriteTest.InvalidRegion3D/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueUSMFill2DNegativeTest.OutOfBounds/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueUSMAdviseTest.InvalidSizeTooLarge/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueUSMMemcpyTest.WaitForDependencies/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueUSMPrefetchTest.InvalidSizeTooLarge/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueReadHostPipeTest.InvalidNullHandleQueue/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueReadHostPipeTest.InvalidNullHandleProgram/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueReadHostPipeTest.InvalidNullPointerPipeSymbol/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueReadHostPipeTest.InvalidNullPointerBuffer/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueReadHostPipeTest.InvalidEventWaitList/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueWriteHostPipeTest.InvalidNullHandleQueue/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueWriteHostPipeTest.InvalidNullHandleProgram/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueWriteHostPipeTest.InvalidNullPointerPipeSymbol/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueWriteHostPipeTest.InvalidNullPointerBuffer/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEnqueueWriteHostPipeTest.InvalidEventWaitList/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
2 changes: 2 additions & 0 deletions test/conformance/enqueue/urEnqueueEventsWait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct urEnqueueEventsWaitTest : uur::urMultiQueueTest {
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urEnqueueEventsWaitTest);

TEST_P(urEnqueueEventsWaitTest, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ur_event_handle_t event1 = nullptr;
ur_event_handle_t waitEvent = nullptr;
ASSERT_SUCCESS(urEnqueueMemBufferCopy(queue1, src_buffer, dst_buffer, 0, 0,
Expand All @@ -47,6 +48,7 @@ TEST_P(urEnqueueEventsWaitTest, Success) {
ASSERT_SUCCESS(urEventWait(1, &waitEvent));

std::vector<uint32_t> output(count, 1);
// Corrupts the stack
ASSERT_SUCCESS(urEnqueueMemBufferRead(queue1, dst_buffer, true, 0, size,
output.data(), 0, nullptr, nullptr));
ASSERT_EQ(input, output);
Expand Down
2 changes: 2 additions & 0 deletions test/conformance/enqueue/urEnqueueEventsWaitWithBarrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct urEnqueueEventsWaitWithBarrierTest : uur::urMultiQueueTest {
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urEnqueueEventsWaitWithBarrierTest);

TEST_P(urEnqueueEventsWaitWithBarrierTest, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ur_event_handle_t event1 = nullptr;
ur_event_handle_t waitEvent = nullptr;
ASSERT_SUCCESS(urEnqueueMemBufferCopy(queue1, src_buffer, dst_buffer, 0, 0,
Expand All @@ -48,6 +49,7 @@ TEST_P(urEnqueueEventsWaitWithBarrierTest, Success) {
EXPECT_SUCCESS(urEventWait(1, &waitEvent));

std::vector<uint32_t> output(count, 1);
// Corrupts the stack
EXPECT_SUCCESS(urEnqueueMemBufferRead(queue1, dst_buffer, true, 0, size,
output.data(), 0, nullptr, nullptr));
EXPECT_EQ(input, output);
Expand Down
1 change: 1 addition & 0 deletions test/conformance/enqueue/urEnqueueMemBufferCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ UUR_TEST_SUITE_P(urEnqueueMemBufferCopyTestWithParam,
uur::deviceTestWithParamPrinter<size_t>);

TEST_P(urEnqueueMemBufferCopyTestWithParam, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ASSERT_SUCCESS(urEnqueueMemBufferCopy(queue, src_buffer, dst_buffer, 0, 0,
size, 0, nullptr, nullptr));
std::vector<uint32_t> output(count, 1);
Expand Down
1 change: 1 addition & 0 deletions test/conformance/enqueue/urEnqueueMemBufferCopyRect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ UUR_TEST_SUITE_P(

TEST_P(urEnqueueMemBufferCopyRectTestWithParam, Success) {
// Unpack the parameters.
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
const auto src_buffer_size = getParam().src_size;
const auto dst_buffer_size = getParam().dst_size;
const auto src_buffer_origin = getParam().src_origin;
Expand Down
3 changes: 3 additions & 0 deletions test/conformance/enqueue/urEnqueueMemBufferFill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ UUR_TEST_SUITE_P(urEnqueueMemBufferFillTest, testing::ValuesIn(test_cases),
uur::printFillTestString<urEnqueueMemBufferFillTest>);

TEST_P(urEnqueueMemBufferFillTest, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ASSERT_SUCCESS(urEnqueueMemBufferFill(queue, buffer, pattern.data(),
pattern_size, 0, size, 0, nullptr,
nullptr));
Expand All @@ -76,6 +77,7 @@ TEST_P(urEnqueueMemBufferFillTest, Success) {
verifyData(output, size);
}
TEST_P(urEnqueueMemBufferFillTest, SuccessPartialFill) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
if (size == 1) {
// Can't partially fill one byte
GTEST_SKIP();
Expand All @@ -101,6 +103,7 @@ TEST_P(urEnqueueMemBufferFillTest, SuccessPartialFill) {
}

TEST_P(urEnqueueMemBufferFillTest, SuccessOffset) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
if (size == 1) {
// No room for an offset
GTEST_SKIP();
Expand Down
1 change: 1 addition & 0 deletions test/conformance/enqueue/urEnqueueMemBufferWriteRect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ UUR_TEST_SUITE_P(
uur::printRectTestString<urEnqueueMemBufferWriteRectTestWithParam>);

TEST_P(urEnqueueMemBufferWriteRectTestWithParam, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
// Unpack the parameters.
const auto host_size = getParam().src_size;
const auto buffer_size = getParam().dst_size;
Expand Down
4 changes: 4 additions & 0 deletions test/conformance/enqueue/urEnqueueMemImageCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ UUR_TEST_SUITE_P(urEnqueueMemImageCopyTest,
printImageCopyTestString<urEnqueueMemImageCopyTest>);

TEST_P(urEnqueueMemImageCopyTest, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ASSERT_SUCCESS(urEnqueueMemImageCopy(queue, srcImage, dstImage, {0, 0, 0},
{0, 0, 0}, size, 0, nullptr, nullptr));
std::vector<rgba_pixel> output(buffSize, {1, 1, 1, 1});
Expand All @@ -125,6 +126,7 @@ TEST_P(urEnqueueMemImageCopyTest, Success) {
}

TEST_P(urEnqueueMemImageCopyTest, SuccessPartialCopy) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ASSERT_SUCCESS(urEnqueueMemImageCopy(queue, srcImage, dstImage, {0, 0, 0},
{0, 0, 0}, partialRegion, 0, nullptr,
nullptr));
Expand All @@ -149,6 +151,7 @@ TEST_P(urEnqueueMemImageCopyTest, SuccessPartialCopy) {
}

TEST_P(urEnqueueMemImageCopyTest, SuccessPartialCopyWithSrcOffset) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ASSERT_SUCCESS(urEnqueueMemImageCopy(queue, srcImage, dstImage,
partialRegionOffset, {0, 0, 0},
partialRegion, 0, nullptr, nullptr));
Expand All @@ -173,6 +176,7 @@ TEST_P(urEnqueueMemImageCopyTest, SuccessPartialCopyWithSrcOffset) {
}

TEST_P(urEnqueueMemImageCopyTest, SuccessPartialCopyWithDstOffset) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ASSERT_SUCCESS(urEnqueueMemImageCopy(queue, srcImage, dstImage, {0, 0, 0},
partialRegionOffset, partialRegion, 0,
nullptr, nullptr));
Expand Down
3 changes: 3 additions & 0 deletions test/conformance/enqueue/urEnqueueMemImageRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ TEST_P(urEnqueueMemImageReadTest, InvalidOrigin3D) {
}

TEST_P(urEnqueueMemImageReadTest, InvalidRegion1D) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
std::vector<uint32_t> output(width * 4, 42);
ur_rect_region_t bad_region{width + 1, 1, 1};
ASSERT_EQ_RESULT(UR_RESULT_ERROR_INVALID_SIZE,
Expand All @@ -116,6 +117,7 @@ TEST_P(urEnqueueMemImageReadTest, InvalidRegion1D) {
}

TEST_P(urEnqueueMemImageReadTest, InvalidRegion2D) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
std::vector<uint32_t> output(width * height * 4, 42);
ur_rect_region_t bad_region{width, height + 1, 1};
ASSERT_EQ_RESULT(UR_RESULT_ERROR_INVALID_SIZE,
Expand All @@ -125,6 +127,7 @@ TEST_P(urEnqueueMemImageReadTest, InvalidRegion2D) {
}

TEST_P(urEnqueueMemImageReadTest, InvalidRegion3D) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
std::vector<uint32_t> output(width * height * depth * 4, 42);
ur_rect_region_t bad_region{width, height, depth + 1};
ASSERT_EQ_RESULT(UR_RESULT_ERROR_INVALID_SIZE,
Expand Down
5 changes: 4 additions & 1 deletion test/conformance/event/event_adapter_level_zero.match
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
{{OPT}}urEventGetProfilingInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_PROFILING_INFO_COMMAND_SUBMIT
{{OPT}}urEventGetProfilingInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_PROFILING_INFO_COMMAND_COMPLETE
{{OPT}}urEventGetProfilingInfoWithTimingComparisonTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
{{OPT}}{{Segmentation fault|Aborted}}
urEventSetCallbackTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEventSetCallbackTest.ValidateParameters/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEventSetCallbackTest.AllStates/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urEventSetCallbackTest.EventAlreadyCompleted/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
1 change: 1 addition & 0 deletions test/conformance/event/urEventCreateWithNativeHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ using urEventCreateWithNativeHandleTest = uur::event::urEventTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urEventCreateWithNativeHandleTest);

TEST_P(urEventCreateWithNativeHandleTest, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ur_native_handle_t native_event = 0;
{
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/event/urEventGetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using urEventGetInfoTest = uur::event::urEventTestWithParam<ur_event_info_t>;

TEST_P(urEventGetInfoTest, Success) {

UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ur_event_info_t info_type = getParam();
size_t size;
ASSERT_SUCCESS(urEventGetInfo(event, info_type, 0, nullptr, &size));
Expand Down
16 changes: 15 additions & 1 deletion test/conformance/memory/memory_adapter_level_zero.match
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@
urMemBufferPartitionTest.InvalidValueCreateType/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
urMemBufferPartitionTest.InvalidValueBufferCreateInfoOutOfBounds/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
{{OPT}}urMemGetInfoImageTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_MEM_INFO_SIZE
{{Segmentation fault|Aborted}}
urMemImageGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_FORMAT
urMemImageGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_ELEMENT_SIZE
urMemImageGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_ROW_PITCH
urMemImageGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_SLICE_PITCH
urMemImageGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_WIDTH
urMemImageGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_HEIGHT
urMemImageGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_DEPTH
urMemImageGetInfoTest.InvalidSizeSmall/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_FORMAT
urMemImageGetInfoTest.InvalidSizeSmall/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_ELEMENT_SIZE
urMemImageGetInfoTest.InvalidSizeSmall/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_ROW_PITCH
urMemImageGetInfoTest.InvalidSizeSmall/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_SLICE_PITCH
urMemImageGetInfoTest.InvalidSizeSmall/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_WIDTH
urMemImageGetInfoTest.InvalidSizeSmall/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_HEIGHT
urMemImageGetInfoTest.InvalidSizeSmall/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_IMAGE_INFO_DEPTH
urMemImageCreateTest.InvalidImageDescStype/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
2 changes: 2 additions & 0 deletions test/conformance/memory/urMemImageCreate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ TEST_P(urMemImageCreateTest, InvalidNullPointerImageFormat) {
}

TEST_P(urMemImageCreateTest, InvalidSize) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");

uur::raii::Mem image_handle = nullptr;

Expand Down Expand Up @@ -295,6 +296,7 @@ UUR_TEST_SUITE_P(urMemImageCreateWithHostPtrFlagsTest,
uur::deviceTestWithParamPrinter<ur_mem_flag_t>);

TEST_P(urMemImageCreateWithHostPtrFlagsTest, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
uur::raii::Mem host_ptr_buffer = nullptr;
ASSERT_SUCCESS(urMemImageCreate(context, UR_MEM_FLAG_ALLOC_HOST_POINTER,
&image_format, &image_desc, nullptr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ UUR_TEST_SUITE_P(
uur::deviceTestWithParamPrinter<ur_image_format_t>);

TEST_P(urMemImageCreateTestWithImageFormatParam, Success) {
UUR_SKIP_ON_BACKEND(UR_PLATFORM_BACKEND_LEVEL_ZERO, "Crashes: https://github.com/oneapi-src/unified-runtime/issues/2103");
ur_image_channel_order_t channel_order =
std::get<1>(GetParam()).channelOrder;
ur_image_channel_type_t channel_type = std::get<1>(GetParam()).channelType;
Expand Down
10 changes: 10 additions & 0 deletions test/conformance/testing/include/uur/fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
ASSERT_EQ(status, UR_RESULT_SUCCESS); \
}

#define UUR_SKIP_ON_BACKEND(BACKEND, ...) \
do { \
ur_platform_backend_t backend; \
ASSERT_SUCCESS(urPlatformGetInfo(platform, UR_PLATFORM_INFO_BACKEND, \
sizeof(backend), &backend, nullptr)); \
if (backend == BACKEND) { \
GTEST_SKIP() << __VA_ARGS__; \
} \
} while (0);

namespace uur {

struct urPlatformTest : ::testing::Test {
Expand Down

0 comments on commit 305c756

Please sign in to comment.