| 33 | } |
| 34 | |
| 35 | se::Platform* GPUMachineManager() { |
| 36 | auto result = se::MultiPlatformManager::PlatformWithName(GpuPlatformName()); |
| 37 | if (!result.ok()) { |
| 38 | LOG(FATAL) << "Could not find Platform with name " << GpuPlatformName(); |
| 39 | return nullptr; |
| 40 | } |
| 41 | |
| 42 | return result.ValueOrDie(); |
| 43 | } |
| 44 | |
| 45 | string GpuPlatformName() { |
| 46 | #if TENSORFLOW_USE_ROCM |