From 8794d35c784e5d80cb5c4be5aea63eed59d1ac2b Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 4 Jun 2019 20:52:27 +0100 Subject: [PATCH] GPU --- Grid/tensors/Tensor_class.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Grid/tensors/Tensor_class.h b/Grid/tensors/Tensor_class.h index b48cefcc..84df7d4f 100644 --- a/Grid/tensors/Tensor_class.h +++ b/Grid/tensors/Tensor_class.h @@ -64,7 +64,7 @@ public: enum { TensorLevel = GridTypeMapper::TensorLevel + 1 }; - static constexpr accelerator_inline int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); } + static accelerator_inline constexpr int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); } // Scalar no action accelerator iScalar() = default; @@ -197,7 +197,7 @@ public: // get double precision version typedef iVector::DoublePrecision, N> DoublePrecision; - static constexpr accelerator_inline int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); } + static accelerator_inline constexpr int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); } template ::value, T>::type * = nullptr> accelerator_inline auto operator=(T arg) -> iVector { @@ -308,7 +308,7 @@ public: enum { TensorLevel = GridTypeMapper::TensorLevel + 1 }; - static constexpr accelerator_inline int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); } + static accelerator_inline constexpr int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); } accelerator_inline iMatrix(const Zero &z) { zeroit(*this); }; accelerator iMatrix() = default;