• Kenneth Moreland's avatar
    Synchronize CUDA timer when stopping it · 4d9ce248
    Kenneth Moreland authored
    Previously, when Stop was called on a Cuda timer, it would record a stop
    event but it would not synchronize it at that time. Instead, the
    synchronize was only called when GetElapsedTime was called. The problem
    is that the time of the event is only marked when synchronize is called.
    Thus, if the event completed before GetElapsedTime was called, it would
    record the time from when the event acutally happened to the time when
    GetElapsedTime was called as part of the elapsed time, which is
    incorrect.
    
    Fix the problem by synchronizing when Stop is called. Although this
    makes the Timer more invasive, generally using the Timer can cause
    synchronization to happen. This behavior is consistent with the Timer
    implementation for other devices.
    4d9ce248
Name
Last commit
Last update
CMake Loading commit data...
Utilities Loading commit data...
benchmarking Loading commit data...
data Loading commit data...
docs Loading commit data...
examples Loading commit data...
vtkm Loading commit data...
.clang-format Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake.in Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
version.txt Loading commit data...