MCPcopy Create free account
hub / github.com/Niko1221/Strata / flush

Function flush

engine/metal/src/gpu/runtime.cpp:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 return s->enc;
171}
172void flush(StreamImpl* s) {
173 if (!s->cb) return;
174 end_encoder(s);
175 s->cb->encodeSignalEvent(s->tl, ++s->submitted);
176 s->cb->commit();
177 s->cb->release();
178 s->cb = nullptr;
179 s->pending = 0;
180}
181Error wait_value(MTL::SharedEvent* ev, uint64_t v) {
182 while (ev->signaledValue() < v) std::this_thread::yield();
183 ++rt().stats.host_syncs;

Callers 12

encode_copyFunction · 0.70
encode_dispatchFunction · 0.70
record_eventFunction · 0.70
device_synchronizeFunction · 0.70
memset_deviceFunction · 0.70
memcpy_syncFunction · 0.70
stream_destroyFunction · 0.70
stream_synchronizeFunction · 0.70
stream_queryFunction · 0.70
launch_host_funcFunction · 0.70
begin_captureFunction · 0.70
windowMethod · 0.50

Calls 3

end_encoderFunction · 0.85
commitMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected