11 using namespace Compadre;
15 this->
ksg = !Kokkos::is_initialized()
16 #ifdef COMPADRE_KOKKOS_GREATEREQUAL_3_7
17 && !Kokkos::is_finalized()
20 new Kokkos::ScopeGuard(args) :
nullptr;
21 if (print_status) this->
status();
26 this->
ksg = !Kokkos::is_initialized()
27 #ifdef COMPADRE_KOKKOS_GREATEREQUAL_3_7
28 && !Kokkos::is_finalized()
31 new Kokkos::ScopeGuard(narg, args) :
nullptr;
32 if (print_status) this->
status();
36 std::vector<char*> char_args;
37 for (
const auto& arg : stdvec_args) {
38 char_args.push_back((
char*)arg.data());
40 char_args.push_back(
nullptr);
41 int narg = (int)stdvec_args.size();
43 this->
ksg = !Kokkos::is_initialized()
44 #ifdef COMPADRE_KOKKOS_GREATEREQUAL_3_7
45 && !Kokkos::is_finalized()
48 new Kokkos::ScopeGuard(narg, char_args.data()) :
nullptr;
49 if (print_status) this->
status();
55 std::stringstream stream;
56 Kokkos::print_configuration(stream,
true);
57 std::string
status = stream.str();
Class handling Kokkos command line arguments and returning parameters.
Kokkos::InitArguments KokkosInitArguments
static std::string status()