|
Zip and Skip Tries
|
A simple CUDA timer class using CUDA events. More...
Public Member Functions | |
| CudaTimer () | |
| Constructs the CudaTimer and creates CUDA events. | |
| ~CudaTimer () | |
| Destroys the CUDA events. | |
| void | start_timer () |
| Records the start event in the default CUDA stream. | |
| float | stop_timer () |
| Records the stop event, synchronizes, and calculates elapsed time. | |
Private Attributes | |
| cudaEvent_t | start |
| cudaEvent_t | stop |
| CUDA events to mark start and stop points. | |
| float | time |
| Stores the calculated elapsed time in milliseconds. | |
A simple CUDA timer class using CUDA events.
Measures the execution time of CUDA operations between calls to start_timer() and stop_timer().
Definition at line 132 of file cuda_utils.cuh.
|
inline |
Constructs the CudaTimer and creates CUDA events.
Definition at line 138 of file cuda_utils.cuh.
|
inline |
Destroys the CUDA events.
Definition at line 147 of file cuda_utils.cuh.
|
inline |
Records the start event in the default CUDA stream.
Definition at line 156 of file cuda_utils.cuh.
|
inline |
Records the stop event, synchronizes, and calculates elapsed time.
start_timer() and stop_timer(). Definition at line 166 of file cuda_utils.cuh.
|
private |
Definition at line 175 of file cuda_utils.cuh.
|
private |
CUDA events to mark start and stop points.
Definition at line 175 of file cuda_utils.cuh.
|
private |
Stores the calculated elapsed time in milliseconds.
Definition at line 176 of file cuda_utils.cuh.