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

Function main

test/print_info.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace af;
13
14int main(int, const char**) {
15 int backend = getAvailableBackends();
16 if (backend & AF_BACKEND_OPENCL) {
17 setBackend(AF_BACKEND_OPENCL);
18 } else if (backend & AF_BACKEND_CUDA) {
19 setBackend(AF_BACKEND_CUDA);
20 } else if (backend & AF_BACKEND_CPU) {
21 setBackend(AF_BACKEND_CPU);
22 }
23
24 info();
25 return 0;
26}

Callers

nothing calls this directly

Calls 3

getAvailableBackendsFunction · 0.85
infoFunction · 0.85
setBackendFunction · 0.50

Tested by

no test coverage detected