Skip to content

Commit

Permalink
Attempted to disable vectorisation if __NVCOMPILER is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
odlomax committed Feb 12, 2024
1 parent 8e1484b commit fc64ae4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/atlas/interpolation/method/sphericalvector/SparseMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@

#include "atlas/library/defines.h"
#if ATLAS_HAVE_EIGEN

#ifdef __NVCOMPILER
#define EIGEN_MAX_ALIGN_BYTES 0
#define EIGEN_UNALIGNED_VECTORIZE 0
#define EIGEN_DONT_VECTORIZE
#define EIGEN_DONT_PARALLELIZE
#endif

#include <Eigen/Sparse>
#endif

Expand Down

0 comments on commit fc64ae4

Please sign in to comment.