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

Method gpu_stream

tensorflow/stream_executor/gpu/gpu_stream.h:72–75  ·  view source on GitHub ↗

Returns the GpuStreamHandle value for passing to the CUDA API. Precond: this GpuStream has been allocated (otherwise passing a nullptr into the NVIDIA library causes difficult-to-understand faults).

Source from the content-addressed store, hash-verified

70 // Precond: this GpuStream has been allocated (otherwise passing a nullptr
71 // into the NVIDIA library causes difficult-to-understand faults).
72 GpuStreamHandle gpu_stream() const {
73 DCHECK(gpu_stream_ != nullptr);
74 return const_cast<GpuStreamHandle>(gpu_stream_);
75 }
76
77 // TODO(timshen): Migrate away and remove this function.
78 GpuStreamHandle cuda_stream() const { return gpu_stream(); }

Callers 6

AsGpuStreamValueFunction · 0.80
StartMethod · 0.80
StopMethod · 0.80
RecordMethod · 0.80
WaitForEventMethod · 0.80
WaitForEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected