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

Function get_system

src/backend/cpu/platform.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace cpu {
36
37static string get_system() {
38 string arch = (sizeof(void*) == 4) ? "32-bit " : "64-bit ";
39
40 return arch +
41#if defined(OS_LNX)
42 "Linux";
43#elif defined(OS_WIN)
44 "Windows";
45#elif defined(OS_MAC)
46 "Mac OSX";
47#endif
48}
49
50int getBackend() { return AF_BACKEND_CPU; }
51

Callers 1

getDeviceInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected