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

Function AsGpuTimer

tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:93–96  ·  view source on GitHub ↗

Given a platform-independent timer datatype, returns the internal CUDA platform implementation pointer.

Source from the content-addressed store, hash-verified

91// Given a platform-independent timer datatype, returns the internal CUDA
92// platform implementation pointer.
93static GpuTimer* AsGpuTimer(Timer* timer) {
94 DCHECK(timer != nullptr);
95 return static_cast<GpuTimer*>(timer->implementation());
96}
97
98// Given const GPU memory, returns a libcuda device pointer datatype, suitable
99// for passing directly to libcuda APIs.

Callers 4

AllocateTimerMethod · 0.70
DeallocateTimerMethod · 0.70
StartTimerMethod · 0.70
StopTimerMethod · 0.70

Calls 1

implementationMethod · 0.45

Tested by

no test coverage detected