VTK-m
2.2
|
A tag specifying the interface between the control and execution environments. More...
#include <DeviceAdapter.h>
A tag specifying the interface between the control and execution environments.
A DeviceAdapter tag specifies a set of functions and classes that provide mechanisms to run algorithms on a type of parallel device. The tag DeviceAdapterTag___ does not actually exist. Rather, this documentation is provided to describe the interface for a DeviceAdapter. Loading the vtkm/cont/DeviceAdapter.h header file will import all device adapters appropriate for the current compile environment.
vtkm::cont::DeviceAdapterTagSerial
Runs all algorithms in serial. Can be helpful for debugging. vtkm::cont::DeviceAdapterTagCuda
Dispatches and runs algorithms on a GPU using CUDA. Must be compiling with a CUDA compiler (nvcc). vtkm::cont::DeviceAdapterTagKokkos
Dispatches and runs algorithms using the Kokkos library. vtkm::cont::DeviceAdapterTagOpenMP
Dispatches an algorithm over multiple CPU cores using OpenMP compiler directives. Must be compiling with an OpenMP-compliant compiler with OpenMP pragmas enabled. vtkm::cont::DeviceAdapterTagTBB
Dispatches and runs algorithms on multiple threads using the Intel Threading Building Blocks (TBB) libraries. Must have the TBB headers available and the resulting code must be linked with the TBB libraries.To execute algorithms on any device, see Algorithm.h which allows for abitrary device execution.