mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 14:09:03 +00:00
device_execution: fix CL_QUEUE_* in error messages (#1896)
When reporting errors from `clCreateCommandQueueWithProperties`, report the correct property names. In particular: `CL_QUEUE_DEVICE` should be `CL_QUEUE_ON_DEVICE`. `CL_QUEUE_DEFAULT` should be `CL_QUEUE_ON_DEVICE_DEFAULT`. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
ffb0265abd
commit
d8ad10d1ea
@@ -123,7 +123,9 @@ int test_enqueue_multi_queue(cl_device_id device, cl_context context, cl_command
|
||||
};
|
||||
|
||||
dev_queue = clCreateCommandQueueWithProperties(context, device, queue_prop_def, &err_ret);
|
||||
test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_DEFAULT) failed");
|
||||
test_error(err_ret,
|
||||
"clCreateCommandQueueWithProperties(CL_QUEUE_ON_DEVICE | "
|
||||
"CL_QUEUE_ON_DEVICE_DEFAULT) failed");
|
||||
|
||||
if(max_queues > 1)
|
||||
{
|
||||
@@ -141,7 +143,9 @@ int test_enqueue_multi_queue(cl_device_id device, cl_context context, cl_command
|
||||
for(i = 0; i < n; ++i)
|
||||
{
|
||||
queues[i] = clCreateCommandQueueWithProperties(context, device, queue_prop, &err_ret);
|
||||
test_error(err_ret, "clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE) failed");
|
||||
test_error(err_ret,
|
||||
"clCreateCommandQueueWithProperties(CL_QUEUE_ON_DEVICE) "
|
||||
"failed");
|
||||
q[i] = queues[i];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user