ec0791e941
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
285 B
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.