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

Function getBackendDirectoryName

src/api/unified/symbol_manager.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 return ret;
79}
80string getBackendDirectoryName(const af_backend backend) {
81 string ret;
82 switch (backend) {
83 case AF_BACKEND_CUDA: ret = "cuda"; break;
84 case AF_BACKEND_OPENCL: ret = "opencl"; break;
85 case AF_BACKEND_CPU: ret = "cpu"; break;
86 case AF_BACKEND_ONEAPI: ret = "oneapi"; break;
87 default: assert(1 != 1 && "Invalid backend");
88 }
89 return ret;
90}
91
92string join_path(string first) { return first; }
93

Callers 2

openDynLibraryFunction · 0.85
AFSymbolManagerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected