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

Function getQueue

include/af/opencl.h:198–204  ·  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

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

Callers 15

mainFunction · 0.50
syncFunction · 0.50
svdInPlaceFunction · 0.50
findPlanFunction · 0.50
joinFunction · 0.50
reduceBlocksByKeyFunction · 0.50
reduceBlocksByKeyDimFunction · 0.50
finalBoundaryReduceFunction · 0.50
finalBoundaryReduceDimFunction · 0.50
compactFunction · 0.50
compactDimFunction · 0.50
testNeedsReductionFunction · 0.50

Calls 1

afcl_get_queueFunction · 0.50

Tested by

no test coverage detected