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

Function stream_destroy

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

Source from the content-addressed store, hash-verified

476
477Error stream_create(Stream* s, unsigned) { *s = make_stream(); return kSuccess; }
478Error stream_destroy(Stream s) {
479 if (!s) return kSuccess;
480 flush(s);
481 wait_value(s->tl, s->submitted);
482 s->tl->release();
483 s->q->release();
484 delete s;
485 return kSuccess;
486}
487Error stream_synchronize(Stream st) {
488 StreamImpl* s = S(st);
489 flush(s);

Callers 2

mainFunction · 0.85
cudaStreamDestroyFunction · 0.85

Calls 3

wait_valueFunction · 0.85
flushFunction · 0.70
releaseMethod · 0.45

Tested by 1

mainFunction · 0.68