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

Function devprop

src/backend/cpu/platform.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void devprop(char* d_name, char* d_platform, char* d_toolkit, char* d_compute) {
93 const CPUInfo cinfo = DeviceManager::getInstance().getCPUInfo();
94
95 snprintf(d_name, 64, "%s", cinfo.vendor().c_str());
96 snprintf(d_platform, 10, "CPU");
97 // report the compiler for toolkit
98 snprintf(d_toolkit, 64, "%s", AF_COMPILER_STR);
99 snprintf(d_compute, 10, "%s", "0.0");
100}
101
102int& getMaxJitSize() {
103 constexpr int MAX_JIT_LEN = 100;

Callers 1

af_device_infoFunction · 0.50

Calls 2

getCPUInfoMethod · 0.80
vendorMethod · 0.80

Tested by

no test coverage detected