1. 04 Mar, 2019 10 commits
  2. 01 Mar, 2019 13 commits
  3. 28 Feb, 2019 4 commits
    • Kenneth Moreland's avatar
      Specify return type for GetTimerImpl · 6797c6e3
      Kenneth Moreland authored
      The internal function GetTimerImpl has a rather complex expression for
      its return type. Prevously this was derived using declspec, but one of
      the versions of Visual Studio barfed on that for some reason. So now
      declare the return type explicitly.
      6797c6e3
    • Kenneth Moreland's avatar
      Increase the conditions on which Timer is tested · 25f3432b
      Kenneth Moreland authored
      UnitTestTimer was changed to be initialized across all possible devices
      and getting times across all possible devices. Also test all possible
      ways to set the device in the Timer.
      25f3432b
    • 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
    • Kenneth Moreland's avatar
      Add const correctness to Timer · 85265a9c
      Kenneth Moreland authored
      It should be possible to query a vtkm::cont::Timer without modifying it.
      As such, its query functions (such as Stopped and GetElapsedTime) should
      be const.
      85265a9c
  4. 27 Feb, 2019 4 commits
    • Kenneth Moreland's avatar
      Allow resetting Timer with a new device · 46550899
      Kenneth Moreland authored
      Previously, in order to specify a device with the timer, it had to be
      specified in the timer's construction or had to be specified every time
      GetElapsedTime was called. The first method was inconvienient in the
      case where there are multiple code paths to define the device and the
      latter method was inconvienient because you would have to pass around a
      device id.
      
      Both these techniques still exist, but we have also added a new form of
      Reset that allows you to change the device the timer is used on.
      46550899
    • Kenneth Moreland's avatar
      Enable initializing Timer with a DeviceAdapterId · dd4a9395
      Kenneth Moreland authored
      Previously, a vtkm::cont::Timer had to be initialized with either no
      device or with a device adapter tag. However, this precluded
      initializing the timer with a DeviceAdapterId, which made it difficult
      to create a timer at runtime. Instead, just accept a DeviceAdapterId
      (which all device adapter tags inherit from) and do runtime checks.
      dd4a9395
    • Kenneth Moreland's avatar
      Merge topic 'threads-lib-in-external' · 702e2276
      Kenneth Moreland authored
      e9591621 Find threads library in external build
      Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
      Acked-by: Robert Maynard's avatarRobert Maynard <robert.maynard@kitware.com>
      Merge-request: !1561
      702e2276
    • Kenneth Moreland's avatar
      Find threads library in external build · e9591621
      Kenneth Moreland authored
      In certain circumstances (currently, when logging is enabled), VTK-m
      libraries depend on the threading library. However, when the VTK-m
      package was included from an external project, it did not automatically
      find the threads package. This change makes the Threads library loaded
      when the VTK-m package is found.
      e9591621
  5. 25 Feb, 2019 6 commits
  6. 24 Feb, 2019 1 commit
  7. 23 Feb, 2019 1 commit
  8. 22 Feb, 2019 1 commit