biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c50f96
)
Fix unaligned access with AVX512
author
Paul Bauer
<paul.bauer.q@gmail.com>
Fri, 29 Nov 2019 13:21:44 +0000
(14:21 +0100)
committer
Paul Bauer
<paul.bauer.q@gmail.com>
Fri, 29 Nov 2019 16:21:18 +0000
(17:21 +0100)
Found and debugged by Gilles Gouaillardet
Change-Id: I9203593c94eb745020274b126601d30e49d7aac2
src/gromacs/nbnxm/pairlist_simd_2xmm.h
patch
|
blob
|
history
diff --git
a/src/gromacs/nbnxm/pairlist_simd_2xmm.h
b/src/gromacs/nbnxm/pairlist_simd_2xmm.h
index fb6302028ba3543df36fcb6b11942b794defc5b1..20037e050fe60a2d1c1b567a3cc9aa9063276504 100644
(file)
--- a/
src/gromacs/nbnxm/pairlist_simd_2xmm.h
+++ b/
src/gromacs/nbnxm/pairlist_simd_2xmm.h
@@
-34,7
+34,9
@@
*/
/* Stride of the packed x coordinate array */
-static constexpr int c_xStride2xNN = c_nbnxnCpuIClusterSize;
+static constexpr int c_xStride2xNN = (GMX_SIMD_REAL_WIDTH >= 2 * c_nbnxnCpuIClusterSize)
+ ? GMX_SIMD_REAL_WIDTH / 2
+ : c_nbnxnCpuIClusterSize;
/* Copies PBC shifted i-cell packed atom coordinates to working array */
static inline void icell_set_x_simd_2xnn(int ci,