From 60fe41515b4d7bf5d4d18e365f38f77d824c3e94 Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Tue, 15 Jul 2014 21:45:49 -0400 Subject: [PATCH] Change error to warning for missing OMP_NUM_THREADS 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gromacs/gmxlib/gmx_omp_nthreads.c b/src/gromacs/gmxlib/gmx_omp_nthreads.c index 9549b91cb4..68fdbb37e7 100644 --- a/src/gromacs/gmxlib/gmx_omp_nthreads.c +++ b/src/gromacs/gmxlib/gmx_omp_nthreads.c @@ -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 */ -- 2.22.0