Work-around for ICC 15 on Phi
authorRoland Schulz <roland@rschulz.eu>
Thu, 5 Feb 2015 06:28:51 +0000 (01:28 -0500)
committerRoland Schulz <roland@utk.edu>
Sat, 30 May 2015 06:30:58 +0000 (23:30 -0700)
Change-Id: Id72e6fb124974f0d8572a1715bc1f25e536f7c69

src/gromacs/gmxlib/rbin.c

index 35435d663207d19a2702e09624e9be9be03c8d76..202392c365cd7cf599d6bf2b8597176fe4ca291d 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010,2014, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014,2015, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -87,6 +87,10 @@ int add_binr(t_bin *b, int nr, real r[])
     }
     /* Copy pointer */
     rbuf = b->rbuf+b->nreal;
+
+#if (__ICC >= 1500 || __ICL >= 1500) && defined __MIC__
+#pragma novector /* Work-around for incorrect vectorization */
+#endif
     for (i = 0; (i < nr); i++)
     {
         rbuf[i] = r[i];