| 50 | int getBackend() { return AF_BACKEND_CPU; } |
| 51 | |
| 52 | string getDeviceInfo() noexcept { |
| 53 | const CPUInfo cinfo = DeviceManager::getInstance().getCPUInfo(); |
| 54 | |
| 55 | ostringstream info; |
| 56 | |
| 57 | info << "ArrayFire v" << AF_VERSION << " (CPU, " << get_system() |
| 58 | << ", build " << AF_REVISION << ")" << endl; |
| 59 | |
| 60 | string model = cinfo.model(); |
| 61 | |
| 62 | size_t memMB = |
| 63 | getDeviceMemorySize(static_cast<int>(getActiveDeviceId())) / 1048576; |
| 64 | |
| 65 | info << string("[0] ") << cinfo.vendor() << ": " << ltrim(model); |
| 66 | |
| 67 | if (memMB) { |
| 68 | info << ", " << memMB << " MB, "; |
| 69 | } else { |
| 70 | info << ", Unknown MB, "; |
| 71 | } |
| 72 | |
| 73 | info << "Max threads(" << cinfo.threads() << ") "; |
| 74 | #ifndef NDEBUG |
| 75 | info << AF_COMPILER_STR; |
| 76 | #endif |
| 77 | info << endl; |
| 78 | |
| 79 | return info.str(); |
| 80 | } |
| 81 | |
| 82 | bool isDoubleSupported(int device) { |
| 83 | UNUSED(device); |
no test coverage detected