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:
Sven van Haastregt
2024-03-12 17:36:02 +01:00
committed by GitHub
parent ffb0265abd
commit d8ad10d1ea
10 changed files with 36 additions and 16 deletions

View File

@@ -66,8 +66,8 @@ int test_enqueue_profiling(cl_device_id device, cl_context context,
dev_queue = clCreateCommandQueueWithProperties(
context, device, dev_queue_prop_def, &err_ret);
test_error(err_ret,
"clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_"
"DEFAULT) failed");
"clCreateCommandQueueWithProperties(CL_QUEUE_ON_DEVICE | "
"CL_QUEUE_ON_DEVICE_DEFAULT) failed");
cl_queue_properties host_queue_prop_def[] = { CL_QUEUE_PROPERTIES,
CL_QUEUE_PROFILING_ENABLE,
@@ -75,9 +75,9 @@ int test_enqueue_profiling(cl_device_id device, cl_context context,
host_queue = clCreateCommandQueueWithProperties(
context, device, host_queue_prop_def, &err_ret);
test_error(err_ret,
"clCreateCommandQueueWithProperties(CL_QUEUE_DEVICE|CL_QUEUE_"
"DEFAULT) failed");
test_error(
err_ret,
"clCreateCommandQueueWithProperties(CL_QUEUE_PROFILING_ENABLE) failed");
cl_int status;
size_t size = 1;