Skip to content

Commit

Permalink
Merge pull request #2046 from Bensuo/ewan/remove_cts_limitation
Browse files Browse the repository at this point in the history
Remove command-buffer CTS L0 workaround
  • Loading branch information
omarahmed1111 committed Sep 5, 2024
2 parents e1d0da8 + 34aa5e0 commit 6463cba
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/conformance/exp_command_buffer/fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,37 +159,17 @@ struct urUpdatableCommandBufferExpExecutionTest
ASSERT_SUCCESS(urCommandBufferCreateExp(context, device, &desc,
&updatable_cmd_buf_handle));
ASSERT_NE(updatable_cmd_buf_handle, nullptr);

// Currently there are synchronization issue with immediate submission when used for command buffers.
// So, create queue with batched submission for this test suite if the backend is Level Zero.
if (backend == UR_PLATFORM_BACKEND_LEVEL_ZERO) {
ur_queue_flags_t flags = UR_QUEUE_FLAG_SUBMISSION_BATCHED;
ur_queue_properties_t props = {
/*.stype =*/UR_STRUCTURE_TYPE_QUEUE_PROPERTIES,
/*.pNext =*/nullptr,
/*.flags =*/flags,
};
ASSERT_SUCCESS(urQueueCreate(context, device, &props, &queue));
ASSERT_NE(queue, nullptr);
} else {
queue = urCommandBufferExpExecutionTest::queue;
}
}

void TearDown() override {
if (updatable_cmd_buf_handle) {
EXPECT_SUCCESS(urCommandBufferReleaseExp(updatable_cmd_buf_handle));
}
if (backend == UR_PLATFORM_BACKEND_LEVEL_ZERO && queue) {
ASSERT_SUCCESS(urQueueRelease(queue));
}

UUR_RETURN_ON_FATAL_FAILURE(
urCommandBufferExpExecutionTest::TearDown());
}

ur_exp_command_buffer_handle_t updatable_cmd_buf_handle = nullptr;
ur_queue_handle_t queue = nullptr;
};

struct urCommandBufferCommandExpTest
Expand Down

0 comments on commit 6463cba

Please sign in to comment.