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

Method SynchronizeContext

tensorflow/stream_executor/rocm/rocm_driver.cc:836–846  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

834}
835
836/* static */ bool GpuDriver::SynchronizeContext(GpuContext* context) {
837 ScopedActivateContext activation{context};
838 hipError_t res = tensorflow::wrap::hipDeviceSynchronize();
839 if (res != hipSuccess) {
840 LOG(ERROR) << "could not synchronize on ROCM device: " << ToString(res)
841 << " :: " << port::CurrentStackTrace();
842 return false;
843 }
844
845 return true;
846}
847
848/* static */ port::Status GpuDriver::SynchronizeStream(GpuContext* context,
849 GpuStreamHandle stream) {

Callers

nothing calls this directly

Calls 2

CurrentStackTraceFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected