MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Destroy

Method Destroy

tensorflow/stream_executor/gpu/gpu_stream.cc:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void GpuStream::Destroy() {
36 if (completed_event_ != nullptr) {
37 port::Status status =
38 GpuDriver::DestroyEvent(parent_->gpu_context(), &completed_event_);
39 if (!status.ok()) {
40 LOG(ERROR) << status.error_message();
41 }
42 }
43
44 GpuDriver::DestroyStream(parent_->gpu_context(), &gpu_stream_);
45}
46
47bool GpuStream::IsIdle() const {
48 return GpuDriver::IsStreamIdle(parent_->gpu_context(), gpu_stream_);

Callers

nothing calls this directly

Calls 2

gpu_contextMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected