MueLu: why do we need to call Kokkos::initialize() when using MueLu_Test_ETI.hpp?
Created by: aprokop
@trilinos/muelu
I got hit by the fact that I cannot run the MueLu Driver like this:
$ mpirun -np 4 ./MueDriver.exe --node=serial
when compiled with both OpenMP and Serial nodes. It results in
p=0: *** Caught standard std::exception of type 'std::runtime_error' :
Constructing View and initializing data with uninitialized execution space
Traceback functionality not available
Further debugging shows that OpenMP (and not Serial) is not initialized. Explicitly calling Kokkos::initalize()
before MPI_Global_Session
and Kokkos::finalize()
at the end fixes that.
I remember there was a discussion on the topic at some point, but I can no longer find it.