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

Method RunInCurrentThread

oneflow/core/vm/virtual_machine.cpp:308–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308Maybe<void> VirtualMachine::RunInCurrentThread(vm::InstructionList* instr_list) {
309 CHECK_OR_RETURN(engine_->SchedulerEmpty())
310 << "vm scheduler not empty. May be a fatal error occured";
311 JUST(engine_->Receive(instr_list));
312 ScheduleUntilVMEmpty(engine_.Mutable(), SingleThreadScheduleCtx());
313 return Maybe<void>::Ok();
314}
315
316namespace {
317

Callers

nothing calls this directly

Calls 5

ScheduleUntilVMEmptyFunction · 0.85
SchedulerEmptyMethod · 0.80
ReceiveMethod · 0.45
MutableMethod · 0.45

Tested by

no test coverage detected