Class for timing various things.
More...
#include <GpuAsyncLib.hh>
|
| | GPUTimer () |
| | Create the start and stop events (return codes not checked).
|
| |
| | ~GPUTimer () |
| | Destroy the two events.
|
| |
| void | start () |
| | Record the start event on the default stream.
|
| |
| float | stop () |
| | Record the stop event on the default stream, wait for it and return the time since the start event in milliseconds.
|
| |
|
| cudaEvent_t | beg |
| | Start event, recorded by start().
|
| |
| cudaEvent_t | end |
| | Stop event, recorded by stop().
|
| |
Class for timing various things.
◆ GPUTimer()
Create the start and stop events (return codes not checked).
◆ ~GPUTimer()
◆ start()
Record the start event on the default stream.
◆ stop()
Record the stop event on the default stream, wait for it and return the time since the start event in milliseconds.
◆ beg
| cudaEvent_t GPUTimer::beg |
◆ end
| cudaEvent_t GPUTimer::end |
Stop event, recorded by stop().
The documentation for this struct was generated from the following file: