mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 14:40:46 +01:00
Thrust used on GPU builds
This commit is contained in:
parent
b8f71b6777
commit
1cd4ee0706
@ -49,14 +49,14 @@ namespace Grid
|
|||||||
DEFINE_HDF5_NATIVE_TYPES;
|
DEFINE_HDF5_NATIVE_TYPES;
|
||||||
|
|
||||||
template <typename R>
|
template <typename R>
|
||||||
class Hdf5Type<std::complex<R>>
|
class Hdf5Type<Grid::complex<R> >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static inline const H5NS::DataType & type(void)
|
static inline const H5NS::DataType & type(void)
|
||||||
{
|
{
|
||||||
if (typePtr_ == nullptr)
|
if (typePtr_ == nullptr)
|
||||||
{
|
{
|
||||||
typePtr_.reset(new H5NS::CompType(sizeof(std::complex<R>)));
|
typePtr_.reset(new H5NS::CompType(sizeof(Grid::complex<R>)));
|
||||||
typePtr_->insertMember("re", 0, Hdf5Type<R>::type());
|
typePtr_->insertMember("re", 0, Hdf5Type<R>::type());
|
||||||
typePtr_->insertMember("im", sizeof(R), Hdf5Type<R>::type());
|
typePtr_->insertMember("im", sizeof(R), Hdf5Type<R>::type());
|
||||||
}
|
}
|
||||||
@ -69,7 +69,8 @@ namespace Grid
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename R>
|
template <typename R>
|
||||||
std::unique_ptr<H5NS::CompType> Hdf5Type<std::complex<R>>::typePtr_ = nullptr;
|
std::unique_ptr<H5NS::CompType> Hdf5Type<Grid::complex<R>>::typePtr_ = nullptr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef HDF5_NATIVE_TYPE
|
#undef HDF5_NATIVE_TYPE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user