Change error to warning for missing OMP_NUM_THREADS
authorRoland Schulz <roland@utk.edu>
Wed, 16 Jul 2014 01:45:49 +0000 (21:45 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 20 Aug 2014 16:25:08 +0000 (18:25 +0200)
Setting the default number of OpenMP threads using -ntomp works too. Using ntomp
allows to use the regressiontests. A proper fix should be done in master because
it requires larger code changes.

Change-Id: Ic47cebc9da6cf1b0624a1383d7ce23f93bd26dbe

src/gromacs/gmxlib/gmx_omp_nthreads.c

index 9549b91cb414d461d05f6720f4362b3feb2dc12a..68fdbb37e7074d423a457407926c9c19e29bb644 100644 (file)
@@ -145,9 +145,9 @@ static void pick_module_nthreads(FILE *fplog, int m,
          * OMP_NUM_THREADS also has to be set */
         if (bFullOmpSupport && getenv("OMP_NUM_THREADS") == NULL)
         {
-            gmx_fatal(FARGS, "%s=%d is set, the default number of threads also "
-                      "needs to be set with OMP_NUM_THREADS!",
-                      modth_env_var[m], nth);
+            gmx_warning("%s=%d is set, the default number of threads also "
+                        "needs to be set with OMP_NUM_THREADS!",
+                        modth_env_var[m], nth);
         }
 
         /* with the group scheme warn if any env var except PME is set */