| 237 | } |
| 238 | |
| 239 | int VisibleDeviceCount(const string& visible_device_list) { |
| 240 | #if GOOGLE_CUDA |
| 241 | if (visible_device_list.empty()) { |
| 242 | return GPUMachineManager()->VisibleDeviceCount(); |
| 243 | } |
| 244 | |
| 245 | const std::vector<string> order_str = |
| 246 | str_util::Split(visible_device_list, ','); |
| 247 | return order_str.size(); |
| 248 | #else |
| 249 | return 0; |
| 250 | #endif |
| 251 | } |
| 252 | |
| 253 | int VisibleDeviceCount() { |
| 254 | #if GOOGLE_CUDA |
no test coverage detected