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

Function SynchronizeOrDie

tensorflow/stream_executor/cuda/cuda_driver.cc:153–156  ·  view source on GitHub ↗

Call cuCtxtSynchronize and crash if it doesn't succeed.

Source from the content-addressed store, hash-verified

151
152// Call cuCtxtSynchronize and crash if it doesn't succeed.
153void SynchronizeOrDie() {
154 FAIL_IF_CUDA_RES_ERROR(cuCtxSynchronize(),
155 "Synchronize fail: ", port::CurrentStackTrace());
156}
157
158struct ThreadLocalData {
159 int64 id;

Callers 2

ScopedActivateContextMethod · 0.70

Calls 1

CurrentStackTraceFunction · 0.85

Tested by

no test coverage detected