Skip to content

Commit

Permalink
Remove negative_enqueue_queue_not_compatible
Browse files Browse the repository at this point in the history
Test is no longer valid, and has been superseded by
newly added tests
  • Loading branch information
EwanC committed Feb 7, 2025
1 parent 5999c5a commit 0f9be76
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 71 deletions.
1 change: 0 additions & 1 deletion test_conformance/extensions/cl_khr_command_buffer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ test_definition test_list[] = {
ADD_TEST(
negative_enqueue_command_buffer_num_queues_not_zero_different_while_buffer_creation),
ADD_TEST(negative_enqueue_command_buffer_not_valid_queue_in_queues),
ADD_TEST(negative_enqueue_queue_not_compatible),
ADD_TEST(negative_enqueue_queue_with_different_context),
ADD_TEST(negative_enqueue_command_buffer_different_context_than_event),
ADD_TEST(negative_enqueue_event_wait_list_null_or_events_null),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,63 +292,6 @@ struct EnqueueCommandBufferNotValidQueueInQueues : public BasicCommandBufferTest
}
};

// CL_INCOMPATIBLE_COMMAND_QUEUE_KHR if any element of queues is not compatible
// with the command-queue set on command_buffer creation at the same list index.
struct EnqueueCommandBufferQueueNotCompatible : public BasicCommandBufferTest
{
EnqueueCommandBufferQueueNotCompatible(cl_device_id device,
cl_context context,
cl_command_queue queue)
: BasicCommandBufferTest(device, context, queue),
queue_not_compatible(nullptr)
{}

cl_int Run() override
{
cl_int error = clFinalizeCommandBufferKHR(command_buffer);
test_error(error, "clFinalizeCommandBufferKHR failed");

error = clEnqueueCommandBufferKHR(1, &queue_not_compatible,
command_buffer, 0, nullptr, nullptr);

test_failure_error_ret(error, CL_INCOMPATIBLE_COMMAND_QUEUE_KHR,
"clEnqueueCommandBufferKHR should return "
"CL_INCOMPATIBLE_COMMAND_QUEUE_KHR",
TEST_FAIL);

return CL_SUCCESS;
}

cl_int SetUp(int elements) override
{
cl_int error = BasicCommandBufferTest::SetUp(elements);
test_error(error, "BasicCommandBufferTest::SetUp failed");

queue_not_compatible = clCreateCommandQueue(
context, device, CL_QUEUE_PROFILING_ENABLE, &error);
test_error(error, "clCreateCommandQueue failed");

cl_command_queue_properties queue_properties;
error = clGetCommandQueueInfo(queue, CL_QUEUE_PROPERTIES,
sizeof(queue_properties),
&queue_properties, NULL);
test_error(error, "Unable to query CL_QUEUE_PROPERTIES");

cl_command_queue_properties queue_not_compatible_properties;
error = clGetCommandQueueInfo(queue_not_compatible, CL_QUEUE_PROPERTIES,
sizeof(queue_not_compatible_properties),
&queue_not_compatible_properties, NULL);
test_error(error, "Unable to query CL_QUEUE_PROPERTIES");

test_assert_error(queue_properties != queue_not_compatible_properties,
"Queues properties must be different");

return CL_SUCCESS;
}

clCommandQueueWrapper queue_not_compatible;
};

// CL_INVALID_CONTEXT if any element of queues does not have the same context as
// the command-queue set on command_buffer creation at the same list index.
struct EnqueueCommandBufferQueueWithDifferentContext
Expand Down Expand Up @@ -722,15 +665,6 @@ int test_negative_enqueue_command_buffer_not_valid_queue_in_queues(
device, context, queue, num_elements);
}

int test_negative_enqueue_queue_not_compatible(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements)
{
return MakeAndRunTest<EnqueueCommandBufferQueueNotCompatible>(
device, context, queue, num_elements);
}

int test_negative_enqueue_queue_with_different_context(cl_device_id device,
cl_context context,
cl_command_queue queue,
Expand Down
4 changes: 0 additions & 4 deletions test_conformance/extensions/cl_khr_command_buffer/procs.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,6 @@ extern int test_negative_command_buffer_copy_image_mutable_handle_not_null(
extern int test_negative_enqueue_command_buffer_not_valid_queue_in_queues(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_negative_enqueue_queue_not_compatible(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_negative_enqueue_queue_with_different_context(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
Expand Down

0 comments on commit 0f9be76

Please sign in to comment.