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

Function get_system

src/backend/opencl/platform.cpp:81–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79namespace opencl {
80
81static string get_system() {
82 string arch = (sizeof(void*) == 4) ? "32-bit " : "64-bit ";
83
84 return arch +
85#if defined(OS_LNX)
86 "Linux";
87#elif defined(OS_WIN)
88 "Windows";
89#elif defined(OS_MAC)
90 "Mac OSX";
91#endif
92}
93
94int getBackend() { return AF_BACKEND_OPENCL; }
95

Callers 1

getDeviceInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected