Skip to content
  • Kenneth Moreland's avatar
    Change ConvertNumComponentsToOffsets to use DeviceAdapterId · 81a22ff6
    Kenneth Moreland authored
    The vtkm::cont::ConvertNumComponentsToOffsets method was originally
    created before vtkm::cont::DeviceAdapterId and the dynamic
    vtkm::cont::Algorithm classes were created. Thus, it contained its own
    version of TryExecute and did not support the direct selection of a
    device at runtime. Change the function to use the new dynamic device
    adapter id, which makes this more consistent with the rest of VTK-m and
    cleans up the implementation quite a bit.
    81a22ff6