MCPcopy Create free account
hub / github.com/ROCm/clr / EndCapture

Method EndCapture

hipamd/src/hip_stream.cpp:50–69  ·  view source on GitHub ↗

================================================================================================

Source from the content-addressed store, hash-verified

48
49// ================================================================================================
50hipError_t Stream::EndCapture() {
51 for (auto event : captureEvents_) {
52 hip::Event* e = reinterpret_cast<hip::Event*>(event);
53 e->SetCaptureStream(nullptr);
54 }
55 for (auto stream : parallelCaptureStreams_) {
56 hip::Stream* s = reinterpret_cast<hip::Stream*>(stream);
57 hipError_t err = s->EndCapture();
58 assert(err == hipSuccess);
59 }
60 captureStatus_ = hipStreamCaptureStatusNone;
61 pCaptureGraph_ = nullptr;
62 originStream_ = false;
63 parentStream_ = nullptr;
64 lastCapturedNodes_.clear();
65 parallelCaptureStreams_.clear();
66 captureEvents_.clear();
67
68 return hipSuccess;
69}
70
71// ================================================================================================
72bool Stream::Create() { return create(); }

Callers 2

hipStreamDestroyFunction · 0.80

Calls 2

SetCaptureStreamMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected