Fix memory space for exclusivePrefixSum
Created by: masterleinad
Without this patch, we try to assign between a Kokkos::View
with memory space CudaSpace
and CudaUVMSpace
in case Kokkos
is built with UVM
support and the original memory space is CudaSpace
.
Up to now, we tried to use the default memory space associated with the execution space in ExclusiveScanFunctor
which turned out to be CudaUVMSpace
in this case. Hence, the constructor call assigns a Kokkos::View
with memory space CudaSpace
to a KokkosView
with memory space CudaUVMSpace
which is not allowed.