| 37 | } |
| 38 | |
| 39 | int device_count(Device::DeviceType type) { |
| 40 | switch (type) { |
| 41 | case Device::cpu: |
| 42 | return cpu::device_count(); |
| 43 | case Device::gpu: |
| 44 | return gpu::device_count(); |
| 45 | } |
| 46 | // appease compiler |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | const std::unordered_map<std::string, std::variant<std::string, size_t>>& |
| 51 | device_info(const Device& d) { |
no outgoing calls
no test coverage detected