Correct use of EIGEN_CUDACC to respect EIGEN_NO_CUDA.

This commit is contained in:
Antonio Sánchez
2022-02-04 22:24:31 +00:00
parent d9585478d9
commit d45ac54008
7 changed files with 25 additions and 25 deletions

View File

@@ -518,7 +518,7 @@ inline void palign(PacketType& first, const PacketType& second)
***************************************************************************/
// Eigen+CUDA does not support complexes.
#ifndef __CUDACC__
#ifndef EIGEN_CUDACC
template<> inline std::complex<float> pmul(const std::complex<float>& a, const std::complex<float>& b)
{ return std::complex<float>(a.real()*b.real() - a.imag()*b.imag(), a.imag()*b.real() + a.real()*b.imag()); }