Use acc::maybeConjugate for cpu code

This commit is contained in:
Alejandro Gallo 2023-01-26 01:50:53 +01:00
parent e4f326e394
commit af42b353c4

View File

@ -635,12 +635,9 @@ void getEnergySame
(int const*)&NoNo \ (int const*)&NoNo \
) )
#define MAYBE_CONJ(_conj, _buffer) \ #define MAYBE_CONJ(_conj, _buffer) \
do { \ acc::maybeConjugate((DataFieldType<F>*)_conj, \
for (size_t __i = 0; __i < NoNoNo; ++__i) { \ (DataFieldType<F>*)_buffer,\
_conj[__i] \ NoNoNo);
= maybeConjugate<F>(_buffer[__i]); \
} \
} while (0)
#endif #endif
F one{1.0}, m_one{-1.0}, zero{0.0}; F one{1.0}, m_one{-1.0}, zero{0.0};