Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
45
Maybe<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_seed
Method · 0.70
GetState
Method · 0.70
SetState
Method · 0.70
Calls
2
Get
Function · 0.85
CurrentRankSync
Function · 0.85
Tested by
no test coverage detected