Get a handle to ArrayFire's OpenCL command queue \param[in] retain if true calls clRetainCommandQueue prior to returning the context \returns the current command queue being used by ArrayFire \note Set \p retain to true if this value will be passed to a cl::CommandQueue constructor */
| 196 | \note Set \p retain to true if this value will be passed to a cl::CommandQueue constructor |
| 197 | */ |
| 198 | static inline cl_command_queue getQueue(bool retain = false) |
| 199 | { |
| 200 | cl_command_queue queue; |
| 201 | af_err err = afcl_get_queue(&queue, retain); |
| 202 | if (err != AF_SUCCESS) throw af::exception("Failed to get OpenCL command queue from arrayfire"); |
| 203 | return queue; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | Get the device ID for ArrayFire's current active device |
no test coverage detected