| 308 | } |
| 309 | |
| 310 | cl_int VISIBILITY_HIDDEN |
| 311 | getQueueDevice(cl_command_queue queue, cl_device_id *device) |
| 312 | { |
| 313 | cl_int err; |
| 314 | cl_device_id dev; |
| 315 | |
| 316 | err = clGetCommandQueueInfo(queue, CL_QUEUE_DEVICE, |
| 317 | sizeof(cl_device_id), &dev, NULL); |
| 318 | if (err != CL_SUCCESS) |
| 319 | return err; |
| 320 | if (device != NULL) |
| 321 | *device = dev; |
| 322 | return err; |
| 323 | } |
| 324 | |
| 325 | cl_int VISIBILITY_HIDDEN |
| 326 | getQueueProperties( |
no outgoing calls
no test coverage detected