From 1cd4ee07061e8472e12e9ea547565f0329885f92 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 18 Jun 2019 12:50:35 +0100 Subject: [PATCH] Thrust used on GPU builds --- Grid/serialisation/Hdf5Type.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Grid/serialisation/Hdf5Type.h b/Grid/serialisation/Hdf5Type.h index 8634f35b..64dda349 100644 --- a/Grid/serialisation/Hdf5Type.h +++ b/Grid/serialisation/Hdf5Type.h @@ -49,14 +49,14 @@ namespace Grid DEFINE_HDF5_NATIVE_TYPES; template - class Hdf5Type> + class Hdf5Type > { public: static inline const H5NS::DataType & type(void) { if (typePtr_ == nullptr) { - typePtr_.reset(new H5NS::CompType(sizeof(std::complex))); + typePtr_.reset(new H5NS::CompType(sizeof(Grid::complex))); typePtr_->insertMember("re", 0, Hdf5Type::type()); typePtr_->insertMember("im", sizeof(R), Hdf5Type::type()); } @@ -69,7 +69,8 @@ namespace Grid }; template - std::unique_ptr Hdf5Type>::typePtr_ = nullptr; + std::unique_ptr Hdf5Type>::typePtr_ = nullptr; + } #undef HDF5_NATIVE_TYPE