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

Function af_get_device

src/api/c/device.cpp:220–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220af_err af_get_device(int* device) {
221 try {
222 *device = static_cast<int>(getActiveDeviceId());
223 }
224 CATCHALL;
225 return AF_SUCCESS;
226}
227
228af_err af_set_device(const int device) {
229 try {

Callers 3

testImageFunction · 0.50
testDataFunction · 0.50
getDeviceFunction · 0.50

Calls 1

getActiveDeviceIdFunction · 0.50

Tested by

no test coverage detected