Commit f5827298 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Synchronize the CUDA timer on both the start and end events

Previously, the timer for CUDA devices only called cudaEventSynchronize
at the end event when asking for the elapsed time. This, however, could
allow time to pass from when the timer was reset to when the start event
happened that was not recorded in the timer. This added synchronization
should make sure that all time spent in CUDA is recorded.
parent 429350ab
......@@ -92,6 +92,7 @@ public:
cudaEventRecord(this->StartEvent, 0);
VTKM_CONT_EXPORT vtkm::Float64 GetElapsedTime()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment