Call hipDeviceSynchronize and crash if it doesn't succeed.
| 158 | |
| 159 | // Call hipDeviceSynchronize and crash if it doesn't succeed. |
| 160 | void SynchronizeOrDie() { |
| 161 | auto res = tensorflow::wrap::hipDeviceSynchronize(); |
| 162 | if (res != hipSuccess) { |
| 163 | LOG(FATAL) << "Synchronize found " << ToString(res) |
| 164 | << " :: " << port::CurrentStackTrace(); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | struct ThreadLocalData { |
| 169 | int current_device_ordinal; |
no test coverage detected