MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SynchronizeOrDie

Function SynchronizeOrDie

tensorflow/stream_executor/rocm/rocm_driver.cc:160–166  ·  view source on GitHub ↗

Call hipDeviceSynchronize and crash if it doesn't succeed.

Source from the content-addressed store, hash-verified

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

Callers 2

ScopedActivateContextMethod · 0.70

Calls 2

CurrentStackTraceFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected