Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ IsForkedSubProcess
Function
IsForkedSubProcess
oneflow/core/platform/lib/pthread_fork.cpp:28–28 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
static bool is_fork = false;
27
28
bool IsForkedSubProcess() { return is_fork; }
29
static void SetIsForkedSubProcess() { is_fork = true; }
30
31
namespace {
Callers
8
ReleaseTensor
Method · 0.85
set_current_seed
Method · 0.85
CudaCurrentDeviceGuard
Method · 0.85
Receive
Method · 0.85
NotifyOrRunScheduler
Method · 0.85
OnSchedulerThread
Method · 0.85
ParallelForImpl
Method · 0.85
MultiThreadLoop
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected