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

Function af_get_backend_id

src/api/c/device.cpp:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81af_err af_get_backend_id(af_backend* result, const af_array in) {
82 try {
83 if (in) {
84 const ArrayInfo& info = getInfo(in, false);
85 *result = info.getBackendId();
86 } else {
87 return AF_ERR_ARG;
88 }
89 }
90 CATCHALL;
91 return AF_SUCCESS;
92}
93
94af_err af_get_device_id(int* device, const af_array in) {
95 try {

Callers 3

testFunctionFunction · 0.50
getBackendIdFunction · 0.50
~arrayMethod · 0.50

Calls 1

getBackendIdMethod · 0.80

Tested by

no test coverage detected