Hi,
Using PGI compiler 19.4.0 on DGX-1 system (Intel(R) Xeon(R) CPU E5-2630 v4), have a code which uses the Eigen library. When compiling I get errors as below relating to the SSE/PacketMath.h file in Eigen. FYI I can compile correctly with 18.4 version of compiler although it runs about 5x slower than the gcc version. I can also compile correctly using PGI 19.4.0 on a Power9 system (which doesn’t use SSE). Any suggestions appreciated.
"/home/username/Eigen/src/Core/arch/SSE/PacketMath.h", line 887: error: function
"_mm_castpd_ps" has already been defined
static inline __m128 _mm_castpd_ps (__m128d x) { return reinterpret_cast<__m128&>(x); }
^
"/home/username/Eigen/src/Core/arch/SSE/PacketMath.h", line 888: error: function
"_mm_castpd_si128" has already been defined
static inline __m128i _mm_castpd_si128(__m128d x) { return reinterpret_cast<__m128i&>(x); }
^
"/home/username/Eigen/src/Core/arch/SSE/PacketMath.h", line 889: error: function
"_mm_castps_pd" has already been defined
static inline __m128d _mm_castps_pd (__m128 x) { return reinterpret_cast<__m128d&>(x); }
^
"/home/username/Eigen/src/Core/arch/SSE/PacketMath.h", line 890: error: function
"_mm_castps_si128" has already been defined
static inline __m128i _mm_castps_si128(__m128 x) { return reinterpret_cast<__m128i&>(x); }
^
"/home/username/Eigen/src/Core/arch/SSE/PacketMath.h", line 891: error: function
"_mm_castsi128_ps" has already been defined
static inline __m128 _mm_castsi128_ps(__m128i x) { return reinterpret_cast<__m128&>(x); }
^
"/home/username/Eigen/src/Core/arch/SSE/PacketMath.h", line 892: error: function
"_mm_castsi128_pd" has already been defined
static inline __m128d _mm_castsi128_pd(__m128i x) { return reinterpret_cast<__m128d&>(x); }