diff --git a/Grid/serialisation/JSON_IO.h b/Grid/serialisation/JSON_IO.h index b5255de3..090a36e1 100644 --- a/Grid/serialisation/JSON_IO.h +++ b/Grid/serialisation/JSON_IO.h @@ -54,7 +54,7 @@ namespace Grid void pop(void); template void writeDefault(const std::string &s, const U &x); -#ifdef __NVCC__ +#if defined(GRID_CUDA) || defined(GRID_HIP) void writeDefault(const std::string &s, const Grid::ComplexD &x) { std::complex z(real(x),imag(x)); @@ -101,7 +101,7 @@ namespace Grid void readDefault(const std::string &s, std::vector &output); template void readDefault(const std::string &s, std::pair &output); -#ifdef __NVCC__ +#if defined(GRID_CUDA) || defined(GRID_HIP) void readDefault(const std::string &s, ComplexD &output) { std::complex z;