Workaround for ICC 14
authorRoland Schulz <roland@utk.edu>
Tue, 29 Jul 2014 23:37:19 +0000 (19:37 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 5 Aug 2014 11:00:43 +0000 (13:00 +0200)
Problem was only present with BUILD_SHARED_LIBS=no

Change-Id: Ieb4377d819aa5eff3d139cdbe55775989118a738

src/gromacs/mdlib/perf_est.c

index def9c5b310235deae3399b5550cb52754c9a7901..c7382ab1ed14b969f5991a956eb87c51bfdc32ec 100644 (file)
@@ -101,6 +101,9 @@ int n_bonded_dx(gmx_mtop_t *mtop, gmx_bool bExcl)
      */
     ndx      = 0;
     ndx_excl = 0;
+#if __ICC == 1400 || __ICL == 1400
+#pragma novector /* Work-around for incorrect vectorization */
+#endif
     for (mb = 0; mb < mtop->nmolblock; mb++)
     {
         molt = &mtop->moltype[mtop->molblock[mb].type];