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

Method Destroy

tensorflow/stream_executor/gpu/gpu_timer.cc:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void GpuTimer::Destroy() {
52 GpuContext* context = parent_->gpu_context();
53 port::Status status = GpuDriver::DestroyEvent(context, &start_event_);
54 if (!status.ok()) {
55 LOG(ERROR) << status;
56 }
57
58 status = GpuDriver::DestroyEvent(context, &stop_event_);
59 if (!status.ok()) {
60 LOG(ERROR) << status;
61 }
62}
63
64float GpuTimer::GetElapsedMilliseconds() const {
65 CHECK(start_event_ != nullptr && stop_event_ != nullptr);

Callers 12

operator()Method · 0.45
DeallocateEventMethod · 0.45
DeallocateStreamMethod · 0.45
DeallocateTimerMethod · 0.45
DoConvolveMethod · 0.45
DeallocateEventMethod · 0.45
DeallocateStreamMethod · 0.45
DeallocateTimerMethod · 0.45

Calls 2

gpu_contextMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected