3 using namespace Compadre;
7 this->
ksg = !Kokkos::is_initialized()
8 #ifdef COMPADRE_KOKKOS_GREATEREQUAL_3_7
9 && !Kokkos::is_finalized()
12 new Kokkos::ScopeGuard(args) :
nullptr;
13 if (print_status) this->
status();
18 this->
ksg = !Kokkos::is_initialized()
19 #ifdef COMPADRE_KOKKOS_GREATEREQUAL_3_7
20 && !Kokkos::is_finalized()
23 new Kokkos::ScopeGuard(narg, args) :
nullptr;
24 if (print_status) this->
status();
28 std::vector<char*> char_args;
29 for (
const auto& arg : stdvec_args) {
30 char_args.push_back((
char*)arg.data());
32 char_args.push_back(
nullptr);
33 int narg = (int)stdvec_args.size();
35 this->
ksg = !Kokkos::is_initialized()
36 #ifdef COMPADRE_KOKKOS_GREATEREQUAL_3_7
37 && !Kokkos::is_finalized()
40 new Kokkos::ScopeGuard(narg, char_args.data()) :
nullptr;
41 if (print_status) this->
status();
47 std::stringstream stream;
48 Kokkos::print_configuration(stream,
true);
49 std::string
status = stream.str();
Class handling Kokkos command line arguments and returning parameters.
Kokkos::InitArguments KokkosInitArguments
static std::string status()