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

Function af_set_backend

src/api/c/device.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55using detail::ushort;
56
57af_err af_set_backend(const af_backend bknd) {
58 try {
59 if (bknd != getBackend() && bknd != AF_BACKEND_DEFAULT) {
60 return AF_ERR_ARG;
61 }
62 }
63 CATCHALL;
64
65 return AF_SUCCESS;
66}
67
68af_err af_get_backend_count(unsigned* num_backends) {
69 *num_backends = 1;

Callers 1

setBackendFunction · 0.50

Calls 1

getBackendFunction · 0.50

Tested by

no test coverage detected