aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/api_command.cpp')
-rw-r--r--src/api/api_command.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/api_command.cpp b/src/api/api_command.cpp
index e9972c6..5486ea4 100644
--- a/src/api/api_command.cpp
+++ b/src/api/api_command.cpp
@@ -39,11 +39,12 @@
// Command Queue APIs
cl_command_queue
clCreateCommandQueue(cl_context context,
- cl_device_id device,
+ cl_device_id d_device,
cl_command_queue_properties properties,
cl_int * errcode_ret)
{
cl_int default_errcode_ret;
+ auto device = pobj(d_device);
// No errcode_ret ?
if (!errcode_ret)
@@ -64,7 +65,7 @@ clCreateCommandQueue(cl_context context,
*errcode_ret = CL_SUCCESS;
Coal::CommandQueue *queue = new Coal::CommandQueue(
(Coal::Context *)context,
- (Coal::DeviceInterface *)device,
+ device,
properties,
errcode_ret);