Tpetra::Details::computeOffsets*: Missing fence for UVM
Created by: mhoemmen
@bathmatt reported an issue with Tpetra::Details::computeOffsetsFromCounts
on CUDA:
Note that the function returns an entry of a CudaUVMSpace
array on host, without an intervening fence. Tpetra::Details::computeOffsetsFromConstantCount
has the same issue. @bathmatt says that changing the following line:
to say if (std::is_same<Kokkos::HostSpace,
fixes the issue. The following line in computeOffsetsFromConstantCount
would need to change accordingly:
@trilinos/tpetra