Given a platform-independent timer datatype, returns the internal CUDA platform implementation pointer.
| 91 | // Given a platform-independent timer datatype, returns the internal CUDA |
| 92 | // platform implementation pointer. |
| 93 | static 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. |
no test coverage detected