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

Improve automatic threads placement

parent 97a02aeb
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,8 @@ pugsBuildInfo()
void
setDefaultOMPEnvironment()
{
if constexpr (std::string_view{PUGS_BUILD_KOKKOS_DEVICES} == std::string_view{"OpenMP"}) {
setenv("OMP_PROC_BIND", "spread", 0);
if constexpr (std::string_view{PUGS_BUILD_KOKKOS_DEVICES}.find("OpenMP") != std::string_view::npos) {
setenv("OMP_PROC_BIND", "spread,close", 0);
setenv("OMP_PLACES", "threads", 0);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment