Given a platform-independent timer datatype, returns the internal ROCM platform implementation pointer.
| 67 | // Given a platform-independent timer datatype, returns the internal ROCM |
| 68 | // platform implementation pointer. |
| 69 | static 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. |
no test coverage detected