| 293 | } |
| 294 | |
| 295 | cl_int VISIBILITY_HIDDEN |
| 296 | getQueueContext(cl_command_queue queue, cl_context *context) |
| 297 | { |
| 298 | cl_int err; |
| 299 | cl_context ctx; |
| 300 | |
| 301 | err = clGetCommandQueueInfo(queue, CL_QUEUE_CONTEXT, |
| 302 | sizeof(cl_context), &ctx, NULL); |
| 303 | if (err != CL_SUCCESS) |
| 304 | return err; |
| 305 | if (context != NULL) |
| 306 | *context = ctx; |
| 307 | return err; |
| 308 | } |
| 309 | |
| 310 | cl_int VISIBILITY_HIDDEN |
| 311 | getQueueDevice(cl_command_queue queue, cl_device_id *device) |
no outgoing calls
no test coverage detected