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

Method Init

tensorflow/stream_executor/gpu/gpu_stream.cc:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace gpu {
24
25bool GpuStream::Init() {
26 if (!GpuDriver::CreateStream(parent_->gpu_context(), &gpu_stream_,
27 priority_)) {
28 return false;
29 }
30 return GpuDriver::InitEvent(parent_->gpu_context(), &completed_event_,
31 GpuDriver::EventFlags::kDisableTiming)
32 .ok();
33}
34
35void GpuStream::Destroy() {
36 if (completed_event_ != nullptr) {

Callers

nothing calls this directly

Calls 3

CreateStreamFunction · 0.85
gpu_contextMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected