]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Silence a Kokkos warning about unset OMP_PROC_BIND 14630/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 1 Jan 2023 19:41:23 +0000 (13:41 -0600)
committerMatthias Maier <tamiko@43-1.org>
Sun, 1 Jan 2023 19:41:23 +0000 (13:41 -0600)
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

index b3c58b6f4969884a6099f47b59cc7d796fcfe840..6d8f94af2b42978341ce0a97471b52eab003348a 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.