15 this->
ksg = !Kokkos::is_initialized()
16 && !Kokkos::is_finalized()
18 new Kokkos::ScopeGuard(args) :
nullptr;
19 if (print_status) this->
status();
24 this->
ksg = !Kokkos::is_initialized()
25 && !Kokkos::is_finalized()
27 new Kokkos::ScopeGuard(narg, args) :
nullptr;
28 if (print_status) this->
status();
32 std::vector<char*> char_args;
33 for (
const auto& arg : stdvec_args) {
34 char_args.push_back((
char*)arg.data());
36 char_args.push_back(
nullptr);
37 int narg = (int)stdvec_args.size();
39 this->
ksg = !Kokkos::is_initialized()
40 && !Kokkos::is_finalized()
42 new Kokkos::ScopeGuard(narg, char_args.data()) :
nullptr;
43 if (print_status) this->
status();
49 std::stringstream stream;
50 Kokkos::print_configuration(stream,
true);
51 std::string
status = stream.str();
Kokkos::InitializationSettings KokkosInitArguments
Class handling Kokkos command line arguments and returning parameters.
static std::string status()