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

Function getDeviceId

include/af/opencl.h:210–217  ·  view source on GitHub ↗

Get the device ID for ArrayFire's current active device \returns the cl_device_id of the current device */

Source from the content-addressed store, hash-verified

208 \returns the cl_device_id of the current device
209 */
210 static inline cl_device_id getDeviceId()
211 {
212 cl_device_id id;
213 af_err err = afcl_get_device_id(&id);
214 if (err != AF_SUCCESS) throw af::exception("Failed to get OpenCL device ID");
215
216 return id;
217 }
218
219#if AF_API_VERSION >= 32
220 /**

Callers 3

mainFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls 1

afcl_get_device_idFunction · 0.50

Tested by

no test coverage detected