aboutsummaryrefslogtreecommitdiff
path: root/src/core/commandqueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commandqueue.cpp')
-rw-r--r--src/core/commandqueue.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/commandqueue.cpp b/src/core/commandqueue.cpp
index ae5c526..ab1d677 100644
--- a/src/core/commandqueue.cpp
+++ b/src/core/commandqueue.cpp
@@ -112,9 +112,11 @@ cl_int CommandQueue::info(cl_command_queue_info param_name,
break;
case CL_QUEUE_DEVICE:
- SIMPLE_ASSIGN(cl_device_id, p_device);
+ {
+ auto d_device = desc(p_device);
+ SIMPLE_ASSIGN(cl_device_id, d_device);
+ }
break;
-
case CL_QUEUE_REFERENCE_COUNT:
SIMPLE_ASSIGN(cl_uint, references());
break;