Teuchos::GlobalMPISession: Add option to save a copy of argc & argv for later?
Created by: mhoemmen
@bartlettroscoe I'm thinking about whether it would be a good idea for Teuchos::GlobalMPISession
to save a copy of argc and argv for later. This would make it easier for Kokkos, Tpetra, and downstream unit tests to control Kokkos' behavior (e.g., number of threads) via command-line arguments, without actually needing to call Kokkos::initialize
in GlobalMPISession
's constructor. "Copy" would be a deep copy, since other code may edit the original argc or argv after GlobalMPISession
's constructor returns, and since Kokkos::initialize
itself wants to edit argv.