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

Function backend_index

src/api/unified/symbol_manager.hpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 AF_ERR_LOAD_LIB)
35
36static inline int backend_index(af::Backend be) {
37 switch (be) {
38 case AF_BACKEND_CPU: return 0;
39 case AF_BACKEND_CUDA: return 1;
40 case AF_BACKEND_OPENCL: return 2;
41 case AF_BACKEND_ONEAPI: return 3;
42 default: return -1;
43 }
44}
45
46class AFSymbolManager {
47 public:

Callers 2

AFSymbolManagerMethod · 0.85
setBackendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected