MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / wait

Method wait

test/schedule_test.cpp:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 (*ins2stream)[ins] = n;
142 }
143 void wait(migraphx::module& m, migraphx::instruction_ref ins, std::size_t wait_id) const
144 {
145 if(ins2wait_for->count(ins) == 0)
146 {
147 auto event = wait_event{};
148 m.insert_instruction(ins, event);
149 (*ins2wait_for)[ins] = event.wait_for;
150 }
151 (*ins2wait_for)[ins]->push_back(wait2stream->at(wait_id));
152 }
153 void record(migraphx::module&, migraphx::instruction_ref ins, std::size_t wait_id) const
154 {
155 (*wait2stream)[wait_id] = ins2stream->at(ins);

Callers

nothing calls this directly

Calls 3

insert_instructionMethod · 0.80
atMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected