MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getQueue

Function getQueue

include/af/oneapi.h:184–190  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

182 \note Set \p retain to true if this value will be passed to a cl::CommandQueue constructor
183 */
184 static inline cl_command_queue getQueue(bool retain = false)
185 {
186 cl_command_queue queue;
187 af_err err = afcl_get_queue(&queue, retain);
188 if (err != AF_SUCCESS) throw af::exception("Failed to get OpenCL command queue from arrayfire");
189 return queue;
190 }
191
192 /**
193 Get the device ID for ArrayFire's current active device

Callers

nothing calls this directly

Calls 1

afcl_get_queueFunction · 0.50

Tested by

no test coverage detected