Clash between Eigen and GetDP defines
There is a clash between defines in GetDP and Eigen on NIC5 when optimization flags (-march=native) are activated.
Modules:
module load releases/2020b
module load foss/2020b
module load CMake/3.18.4-GCCcore-10.2.0
module load Boost/1.74.0-GCC-10.2.0
module load Python/3.8.6-GCCcore-10.2.0
module load Eigen/3.3.8-GCCcore-10.2.0
Error:
Dans le fichier inclus depuis /home/ulg/ace/ndavi/getdp/Functions/BF_Node.cpp:11:
/home/ulg/ace/ndavi/getdp/contrib/eigen/Eigen/src/Core/arch/AVX/Complex.h: Dans la fonction « void Eigen::internal::ptranspose(Eigen::internal::PacketBlock<Eigen::internal::Packet4cf, 4>&) »:
/home/ulg/ace/ndavi/getdp/Interface/ProData.h:1766:12: erreur: expected unqualified-id before numeric constant
1766 | #define P1 1
| ^
/home/ulg/ace/ndavi/getdp/contrib/eigen/Eigen/src/Core/arch/AVX/Complex.h:405:11: note: dans l'expansion de la macro « P1 »
405 | __m256d P1 = _mm256_castps_pd(kernel.packet[1].v);
|