Xpetra: add map constructor with Kokkos::View
Created by: lucbv
@trilinos/xpetra
Expectations
We should be able to use a Map constructor that takes in a Kokkos::View
to allow greater scalability in downstream packages.
Current Behavior
No such constructor exists which means that for CUDA builds the map needs to be constructed on the host using a Teuchos::Array<GO>
typically leading to bad parallel performance.
Motivation and Context
This is needed as part of some MueLu work on NGP performance.
Possible Solution
Simply add a new Xpetra::MapFactory::Build()
overload that takes in a Kokkos::View