Skip to content
Snippets Groups Projects
Commit 1d226e76 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'develop' into feature/new_mpi_comm_pugs

parents 9ccaf20e ebfb4adb
No related branches found
No related tags found
1 merge request!172Reproducible summation of floating point arrays
...@@ -83,6 +83,7 @@ initialize(int& argc, char* argv[]) ...@@ -83,6 +83,7 @@ initialize(int& argc, char* argv[])
{ {
bool enable_fpe = true; bool enable_fpe = true;
bool enable_signals = true; bool enable_signals = true;
int nb_threads = -1;
std::string filename; std::string filename;
{ {
...@@ -97,9 +98,8 @@ initialize(int& argc, char* argv[]) ...@@ -97,9 +98,8 @@ initialize(int& argc, char* argv[])
return os.str(); return os.str();
}); });
int threads = -1; app.add_option("--threads", nb_threads, "Number of Kokkos threads")
app.add_option("--threads", threads, "Number of Kokkos threads") ->check(CLI::Range(1, std::numeric_limits<decltype(nb_threads)>::max()));
->check(CLI::Range(1, std::numeric_limits<decltype(threads)>::max()));
bool enable_color = true; bool enable_color = true;
app.add_flag("--color,!--no-color", enable_color, "Colorize console output [default: true]"); app.add_flag("--color,!--no-color", enable_color, "Colorize console output [default: true]");
...@@ -150,7 +150,15 @@ initialize(int& argc, char* argv[]) ...@@ -150,7 +150,15 @@ initialize(int& argc, char* argv[])
SignalManager::init(enable_signals); SignalManager::init(enable_signals);
setDefaultOMPEnvironment(); setDefaultOMPEnvironment();
Kokkos::initialize(argc, argv); {
Kokkos::InitArguments args;
args.num_threads = nb_threads;
args.num_numa = -1;
args.device_id = -1;
args.disable_warnings = true;
Kokkos::initialize(args);
}
if (ConsoleManager::showPreamble()) { if (ConsoleManager::showPreamble()) {
std::cout << "----------------- " << rang::fg::green << "pugs exec info" << rang::fg::reset std::cout << "----------------- " << rang::fg::green << "pugs exec info" << rang::fg::reset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment