From ae8dd10feb29fab4ee3e34fd9ab2271d94475711 Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Mon, 23 Oct 2023 16:11:07 +0200 Subject: [PATCH] towards nvidia compat --- lib/cgpt/lib/lattice/implementation.h | 2 ++ lib/cgpt/lib/lib.h | 2 +- lib/cgpt/lib/stencil/tensor.h | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/cgpt/lib/lattice/implementation.h b/lib/cgpt/lib/lattice/implementation.h index 8b83877c..83eeda51 100644 --- a/lib/cgpt/lib/lattice/implementation.h +++ b/lib/cgpt/lib/lattice/implementation.h @@ -16,6 +16,8 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + + template class cgpt_Lattice : public cgpt_Lattice_base { public: diff --git a/lib/cgpt/lib/lib.h b/lib/cgpt/lib/lib.h index f487b512..081bbeed 100644 --- a/lib/cgpt/lib/lib.h +++ b/lib/cgpt/lib/lib.h @@ -45,8 +45,8 @@ #include "distribute.h" #include "transform.h" #include "grid.h" -#include "lattice.h" #include "stencil.h" +#include "lattice.h" #include "util.h" #include "precision.h" #include "expression.h" diff --git a/lib/cgpt/lib/stencil/tensor.h b/lib/cgpt/lib/stencil/tensor.h index af1f90b8..369d5d4c 100644 --- a/lib/cgpt/lib/stencil/tensor.h +++ b/lib/cgpt/lib/stencil/tensor.h @@ -148,7 +148,8 @@ class cgpt_stencil_tensor : public cgpt_stencil_tensor_base { typedef typename T::scalar_type element_t; #define NSIMD (sizeof(typename T::vector_type) / sizeof(typename T::scalar_type)) #endif - typedef typename element_t::scalar_type coeff_t; + typedef typename T::scalar_type coeff_t; + VECTOR_ELEMENT_VIEW_OPEN(element_t, fields, fields_v, AcceleratorWrite);