MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / CPUSynchronize

Function CPUSynchronize

oneflow/core/framework/random_generator.cpp:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45Maybe<void> CPUSynchronize() {
46 if (Singleton<VirtualMachine>::Get() != nullptr) { return vm::CurrentRankSync(); }
47 return Maybe<void>::Ok();
48}
49
50} // namespace
51

Callers 3

set_current_seedMethod · 0.70
GetStateMethod · 0.70
SetStateMethod · 0.70

Calls 2

GetFunction · 0.85
CurrentRankSyncFunction · 0.85

Tested by

no test coverage detected