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

Function afcl_get_device_id

src/api/unified/opencl.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43af_err afcl_get_device_id(cl_device_id* id) {
44 af_backend backend;
45 af_get_active_backend(&backend);
46 if (backend == AF_BACKEND_OPENCL) { CALL(afcl_get_device_id, id); }
47 return AF_ERR_NOT_SUPPORTED;
48}
49
50af_err afcl_set_device_id(cl_device_id id) {
51 af_backend backend;

Callers 2

getDeviceIdFunction · 0.50
getDeviceIdFunction · 0.50

Calls 1

af_get_active_backendFunction · 0.70

Tested by

no test coverage detected