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

Function getDeviceId

src/api/cpp/device.cpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40int getDeviceId(const array &in) {
41 int device = getDevice();
42 AF_THROW(af_get_device_id(&device, in.get()));
43 return device;
44}
45
46af::Backend getActiveBackend() {
47 auto result = static_cast<af::Backend>(0);

Callers

nothing calls this directly

Calls 3

getDeviceFunction · 0.85
af_get_device_idFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected