1. 25 Feb, 2019 1 commit
  2. 05 Feb, 2019 1 commit
    • Haocheng LIU's avatar
      Introduce asynchronous and device independent timer · 415252c6
      Haocheng LIU authored
      The timer class now is asynchronous and device independent. it's using an
      similiar API as vtkOpenGLRenderTimer with Start(), Stop(), Reset(), Ready(),
      and GetElapsedTime() function. For convenience and backward compability, Each
      Start() function call will call Reset() internally and each GetElapsedTime()
      function call will call Stop() function if it hasn't been called yet for keeping
      backward compatibility purpose.
      
      Bascially it can be used in two modes:
      
      * Create a Timer without any device info. vtkm::cont::Timer time;
      
        * It would enable timers for all enabled devices on the machine. Users can get a
      specific elapsed time by passing a device id into the GetElapsedtime function.
      If no device is provided, it would pick the maximum of all timer results - the
      logic behind this decision is that if cuda is disabled, openmp, serial and tbb
      roughly give the same results; if cuda is enabled it's safe to return the
      maximum elapsed time since users are more interested in the device execution
      time rather than the kernal launch time. The Ready function can be handy here
      to query the status of the timer.
      
      * Create a Timer with a device id. vtkm::cont::Timer time((vtkm::cont::DeviceAdapterTagCuda()));
      
        * It works as the old timer that times for a specific device id.
      415252c6
  3. 11 Jan, 2019 1 commit
  4. 27 Dec, 2018 2 commits
  5. 20 Dec, 2018 1 commit
  6. 13 Dec, 2018 1 commit
    • Allison Vacanti's avatar
      Add vtkm::cont::Initialize. · cdb1f568
      Allison Vacanti authored
      Also
      - Renamed vtkm::cont::make_DeviceAdapterIdFromName to just overload
        make_DeviceAdapterId.
      - Refactored CMake logic for unit tests
        - Since we're now querying the device tracker for the names, they
          cannot be all caps.
      - Updated usages of InitLogging to use Initialize instead.
      - Added changelog.
      cdb1f568
  7. 02 Oct, 2018 1 commit
  8. 29 Aug, 2018 1 commit
    • Kenneth Moreland's avatar
      Make DispatcherBase invoke using a TryExecute · d879188d
      Kenneth Moreland authored
      Rather than force all dispatchers to be templated on a device adapter,
      instead use a TryExecute internally within the invoke to select a device
      adapter.
      
      Because this removes the need to declare a device when invoking a
      worklet, this commit also removes the need to declare a device in
      several other areas of the code.
      d879188d
  9. 24 Aug, 2018 1 commit