Skip to content

Commit

Permalink
[CTS] skip pipe and fill2d tests if the feature is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
igchor committed Dec 5, 2024
1 parent e2f1ddd commit ac78000
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 36 deletions.
11 changes: 0 additions & 11 deletions test/conformance/enqueue/enqueue_adapter_level_zero.match
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,8 @@
{{OPT}}urEnqueueMemImageWriteTest.InvalidRegion2D/*
{{OPT}}urEnqueueMemImageWriteTest.InvalidRegion3D/*
{{OPT}}urEnqueueKernelLaunchMultiDeviceTest.KernelLaunchReadDifferentQueues/*
urEnqueueReadHostPipeTest.InvalidEventWaitList/*
urEnqueueReadHostPipeTest.InvalidNullHandleProgram/*
urEnqueueReadHostPipeTest.InvalidNullHandleQueue/*
urEnqueueReadHostPipeTest.InvalidNullPointerBuffer/*
urEnqueueReadHostPipeTest.InvalidNullPointerPipeSymbol/*
urEnqueueUSMAdviseTest.InvalidSizeTooLarge/*
urEnqueueUSMFill2DNegativeTest.OutOfBounds/*
{{OPT}}urEnqueueUSMMemcpyTest.Blocking/*
{{OPT}}urEnqueueUSMMemcpyTest.BlockingWithEvent/*
{{OPT}}urEnqueueUSMMemcpyTest.WaitForDependencies/*
urEnqueueUSMPrefetchTest.InvalidSizeTooLarge/*
urEnqueueWriteHostPipeTest.InvalidEventWaitList/*
urEnqueueWriteHostPipeTest.InvalidNullHandleProgram/*
urEnqueueWriteHostPipeTest.InvalidNullHandleQueue/*
urEnqueueWriteHostPipeTest.InvalidNullPointerBuffer/*
urEnqueueWriteHostPipeTest.InvalidNullPointerPipeSymbol/*
11 changes: 0 additions & 11 deletions test/conformance/enqueue/enqueue_adapter_level_zero_v2.match
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@ urEnqueueKernelLaunchWithVirtualMemory.Success/*
{{OPT}}urEnqueueMemImageWriteTest.InvalidRegion2D/*
{{OPT}}urEnqueueMemImageWriteTest.InvalidRegion3D/*
{{OPT}}urEnqueueKernelLaunchMultiDeviceTest.KernelLaunchReadDifferentQueues/*
urEnqueueUSMFill2DNegativeTest.OutOfBounds/*
urEnqueueUSMAdviseTest.InvalidSizeTooLarge/*
urEnqueueUSMPrefetchTest.InvalidSizeTooLarge/*
urEnqueueReadHostPipeTest.InvalidNullHandleQueue/*
urEnqueueReadHostPipeTest.InvalidNullHandleProgram/*
urEnqueueReadHostPipeTest.InvalidNullPointerPipeSymbol/*
urEnqueueReadHostPipeTest.InvalidNullPointerBuffer/*
urEnqueueReadHostPipeTest.InvalidEventWaitList/*
urEnqueueWriteHostPipeTest.InvalidNullHandleQueue/*
urEnqueueWriteHostPipeTest.InvalidNullHandleProgram/*
urEnqueueWriteHostPipeTest.InvalidNullPointerPipeSymbol/*
urEnqueueWriteHostPipeTest.InvalidNullPointerBuffer/*
urEnqueueWriteHostPipeTest.InvalidEventWaitList/*
{{OPT}}urEnqueueTimestampRecordingExpTest.SuccessBlocking/*
10 changes: 0 additions & 10 deletions test/conformance/enqueue/enqueue_adapter_native_cpu.match
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,6 @@ urEnqueueEventsWaitWithBarrierOrderingTest.SuccessNonEventDependencies/*_
{{OPT}}urEnqueueUSMPrefetchTest.InvalidSizeZero/*
{{OPT}}urEnqueueUSMPrefetchTest.InvalidSizeTooLarge/*
{{OPT}}urEnqueueUSMPrefetchTest.InvalidEventWaitList/*
{{OPT}}urEnqueueReadHostPipeTest.InvalidNullHandleQueue/*
{{OPT}}urEnqueueReadHostPipeTest.InvalidNullHandleProgram/*
{{OPT}}urEnqueueReadHostPipeTest.InvalidNullPointerPipeSymbol/*
{{OPT}}urEnqueueReadHostPipeTest.InvalidNullPointerBuffer/*
{{OPT}}urEnqueueReadHostPipeTest.InvalidEventWaitList/*
{{OPT}}urEnqueueWriteHostPipeTest.InvalidNullHandleQueue/*
{{OPT}}urEnqueueWriteHostPipeTest.InvalidNullHandleProgram/*
{{OPT}}urEnqueueWriteHostPipeTest.InvalidNullPointerPipeSymbol/*
{{OPT}}urEnqueueWriteHostPipeTest.InvalidNullPointerBuffer/*
{{OPT}}urEnqueueWriteHostPipeTest.InvalidEventWaitList/*
urEnqueueKernelLaunchIncrementMultiDeviceMultiThreadTest.Success/*
urEnqueueKernelLaunchIncrementMultiDeviceTest.Success/*
urEnqueueKernelLaunchIncrementTest.Success/*
Expand Down
11 changes: 8 additions & 3 deletions test/conformance/enqueue/urEnqueueUSMFill2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ TEST_P(urEnqueueUSMFill2DTestWithParam, Success) {

ur_event_handle_t event = nullptr;

ASSERT_SUCCESS(urEnqueueUSMFill2D(queue, ptr, pitch, pattern_size,
pattern.data(), width, height, 0, nullptr,
&event));
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(
urEnqueueUSMFill2D(queue, ptr, pitch, pattern_size, pattern.data(),
width, height, 0, nullptr, &event));
EXPECT_SUCCESS(urQueueFlush(queue));

ASSERT_SUCCESS(urEventWait(1, &event));
Expand All @@ -161,6 +161,11 @@ struct urEnqueueUSMFill2DNegativeTest : uur::urQueueTest {

ASSERT_SUCCESS(urUSMDeviceAlloc(context, device, nullptr, nullptr,
allocation_size, &ptr));

UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(
urEnqueueUSMFill2D(queue, ptr, pitch, pattern_size, pattern.data(),
width, height, 0, nullptr, nullptr));
ASSERT_SUCCESS(urQueueFinish(queue));
}

void TearDown() override {
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/testing/include/uur/fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ struct urHostPipeTest : urQueueTest {
platform, context, device, *il_binary, nullptr, &program));

size_t size = 0;
ASSERT_SUCCESS(urDeviceGetInfo(
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(urDeviceGetInfo(
device, UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED, 0, nullptr,
&size));
ASSERT_NE(size, 0);
Expand Down

0 comments on commit ac78000

Please sign in to comment.