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

Function getDeviceType

include/af/opencl.h:297–303  ·  view source on GitHub ↗

Get the type of the current device */

Source from the content-addressed store, hash-verified

295 Get the type of the current device
296*/
297static inline deviceType getDeviceType()
298{
299 afcl_device_type res = AFCL_DEVICE_TYPE_UNKNOWN;
300 af_err err = afcl_get_device_type(&res);
301 if (err!=AF_SUCCESS) throw af::exception("Failed to get OpenCL device type");
302 return res;
303}
304#endif
305
306#if AF_API_VERSION >= 33

Callers 1

TESTFunction · 0.50

Calls 1

afcl_get_device_typeFunction · 0.50

Tested by

no test coverage detected