1. 28 Jul, 2021 1 commit
    • Kenneth Moreland's avatar
      Fix threaded device allocation · fbc43463
      Kenneth Moreland authored
      We are starting to introduce threads in the VTK-m control environment so
      that we can schedule multiple things at once. Once issue we ran into is
      that some methods to allocate data on devices are not thread safe. To
      fix this, we make allocating memory for a `Buffer` thread safe. This
      could potentially slow things down waiting for mutexes, but you are
      hopefully not spending a lot of time allocating/deallocating memory
      anyway.
      fbc43463
  2. 27 Jul, 2021 1 commit
    • Kenneth Moreland's avatar
      Add RuntimeDeviceTracker::CopyState · 25ed066a
      Kenneth Moreland authored
      It is sometimes the case that you want to copy the state of one
      `RuntimeDeviceTracker` to another. This is particularly the case when
      creating threads in the control environment. Each thread has its own
      copy of `RuntimeDeviceTracker`, so when you spawn a thread you probably
      want to copy the state of the tracker from the calling thread.
      25ed066a
  3. 21 Jul, 2021 1 commit
  4. 16 Jul, 2021 3 commits
  5. 15 Jul, 2021 3 commits
    • Gunther Weber's avatar
    • Kenneth Moreland's avatar
      Update code to use ArrayCopyShallowIfPossible · 1fb11417
      Kenneth Moreland authored
      There were several places in the code that had to check the type of an
      `UnknownArrayHandle` and conditionally get or copy that array. This code
      is simplified by using `ArrayCopyShallowIfPossible`.
      1fb11417
    • Kenneth Moreland's avatar
      Add ArrayCopyShallowIfPossible · 5c36eafe
      Kenneth Moreland authored
      Often times you have an array of an unknown type (likely from a data set),
      and you need it to be of a particular type (or can make a reasonable but
      uncertain assumption about it being a particular type). You really just
      want a shallow copy (a reference in a concrete `ArrayHandle`) if that is
      possible.
      
      `ArrayCopyShallowIfPossible` pulls an array of a specific type from an
      `UnknownArrayHandle`. If the type is compatible, it will perform a shallow
      copy. If it is not possible, a deep copy is performed to get it to the
      correct type.
      
      Fixes #572.
      5c36eafe
  6. 14 Jul, 2021 1 commit
  7. 13 Jul, 2021 2 commits
  8. 12 Jul, 2021 12 commits
  9. 30 Jun, 2021 1 commit
  10. 28 Jun, 2021 15 commits