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

Function AsGpuTimer

tensorflow/stream_executor/rocm/rocm_gpu_executor.cc:69–72  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

67// Given a platform-independent timer datatype, returns the internal ROCM
68// platform implementation pointer.
69static GpuTimer* AsGpuTimer(Timer* timer) {
70 DCHECK(timer != nullptr);
71 return static_cast<GpuTimer*>(timer->implementation());
72}
73
74// Given const GPU memory, returns a librocm device pointer datatype, suitable
75// for passing directly to librocm 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