vtk-m/docs/changelog/swap.md
Allison Vacanti ec0791e941 Add a swap implementation that works on all backend.
Calling std::swap isn't legal from CUDA code, but the new vtkm::Swap
method is safe. It currently does a naive swap when compiling CUDA
code, and falls back to an ADL swap
2018-06-01 14:13:46 -04:00

285 B

Add a CUDA-safe vtkm::Swap method.

Added a swap implementation that is safe to call from all backends.

It is not legal to call std functions from CUDA code, and the new vtkm::Swap implements a naive swap when compiled under NVCC while falling back to a std/ADL swap otherwise.