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

Method SynchronizeContext

tensorflow/stream_executor/cuda/cuda_driver.cc:969–979  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

967}
968
969/* static */ bool GpuDriver::SynchronizeContext(GpuContext* context) {
970 ScopedActivateContext activation(context);
971 CUresult res = cuCtxSynchronize();
972 if (res != CUDA_SUCCESS) {
973 LOG(ERROR) << "could not synchronize on CUDA context: " << ToString(res)
974 << " :: " << port::CurrentStackTrace();
975 return false;
976 }
977
978 return true;
979}
980
981/* static */ port::Status GpuDriver::SynchronizeStream(GpuContext* context,
982 CUstream stream) {

Callers

nothing calls this directly

Calls 2

CurrentStackTraceFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected