Add ONEAPI config. Remove omp simd for full neigh.

This commit is contained in:
Jan Eitzinger
2022-04-01 15:57:54 +02:00
parent 0e742766b7
commit 5585ebcf42
5 changed files with 37 additions and 12 deletions

View File

@@ -137,7 +137,9 @@ double computeForceLJHalfNeigh(Parameter *param, Atom *atom, Neighbor *neighbor,
#endif
// Pragma required to vectorize the inner loop
#pragma simd reduction(+: fix,fiy,fiz)
#ifdef ENABLE_OMP_SIMD
#pragma omp simd reduction(+: fix,fiy,fiz)
#endif
for(int k = 0; k < numneighs; k++) {
int j = neighs[k];
MD_FLOAT delx = xtmp - atom_x(j);