fix CPU core oversubscription detection
authorSzilard Pall <pall.szilard@gmail.com>
Sat, 20 Jun 2015 23:04:28 +0000 (01:04 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 21 Jun 2015 07:33:40 +0000 (09:33 +0200)
The detection became non-functional due to unlucky incorrect order in
which the arguments were passed.

Change-Id: Id29ff87e504585f783be742b92a861c06c5e42ac

src/gromacs/gmxlib/gmx_omp_nthreads.c

index 9b97291fc48eb6edf1f060ec216d0f2681e8e35a..263d2af557b1f9d49f52e0dc1e7a2096ed7263b0 100644 (file)
@@ -511,7 +511,7 @@ void gmx_omp_nthreads_init(FILE *fplog, t_commrec *cr,
 #endif
 
     reportOpenmpSettings(fplog, cr, bOMP, bFullOmpSupport, bSepPME);
-    issueOversubscriptionWarning(fplog, cr, bSepPME, nthreads_hw_avail, nppn);
+    issueOversubscriptionWarning(fplog, cr, nthreads_hw_avail, nppn, bSepPME);
 }
 
 int gmx_omp_nthreads_get(int mod)