Returns a string that represents the device in terms of platform and ordinal; e.g. the first CUDA device will be "cuda:0"
| 30 | // Returns a string that represents the device in terms of platform and ordinal; |
| 31 | // e.g. the first CUDA device will be "cuda:0" |
| 32 | string DeviceIdentifier(se::StreamExecutor* stream_exec) { |
| 33 | return absl::StrCat(stream_exec->platform()->Name(), ":", |
| 34 | stream_exec->device_ordinal()); |
| 35 | } |
| 36 | |
| 37 | } // namespace xla |
| 38 |
nothing calls this directly
no test coverage detected