From 5a249438a4483692c0e2759736a6aabd2a0e135b Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 1 Jan 2023 13:41:23 -0600 Subject: [PATCH] CMake: Silence a Kokkos warning about unset OMP_PROC_BIND We now set the OMP_PROC_BIND variable to false to allow free movement of the two worker threads and silence a KOKKOS warning (which might insist on this variable to be defined). --- cmake/scripts/run_test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/scripts/run_test.sh b/cmake/scripts/run_test.sh index b3c58b6f49..6d8f94af2b 100644 --- a/cmake/scripts/run_test.sh +++ b/cmake/scripts/run_test.sh @@ -75,8 +75,13 @@ case $STAGE in # set it to 4,2,1 to set parallelization levels inside parallelized blocks # 2. OMP_THREAD_LIMIT limits the total number of threads, independent of # nesting + # + # 3. In addition we set the OMP_PROC_BIND variable to false to allow + # free movement of the two worker threads and silence a KOKKOS + # warning (which might insist on this variable to be defined). export OMP_NUM_THREADS="2" export OMP_THREAD_LIMIT="2" + export OMP_PROC_BIND="false" # Allow oversubscription for MPI (needed for Openmpi@3.0) export OMPI_MCA_rmaps_base_oversubscribe=1 -- 2.39.5