I'm trying to compile some programs with Mini-Pi .
So far I have been able to compile all but mini-pi_optimized_3_OpenMP.cpp
As I understand in GNU / Linux (Ubuntu), in the terminal you write:
$ mpicxx mini-pi_optimized_3_OpenMP.cpp -o mini-pi_optimized_3_OpenMP -lm
Errors that come to me:
---------------------------------------------------------------------
mini-pi_optimized_3_OpenMP.cpp: In member function ‘Mini_Pi::BigFloat Mini_Pi::BigFloat::mul(const Mini_Pi::BigFloat&, size_t, int) const’:
mini-pi_optimized_3_OpenMP.cpp:937:53: warning: ignoring attributes on template argument ‘__m128d [] {aka __vector(2) double []}’ [-Wignored-attributes]
auto Ta = std::unique_ptr<__m128d[], SIMD_delete>((__m128d*)_mm_malloc(length * sizeof(__m128d), 16), deletor);
^
mini-pi_optimized_3_OpenMP.cpp:938:53: warning: ignoring attributes on template argument ‘__m128d [] {aka __vector(2) double []}’ [-Wignored-attributes]
auto Tb = std::unique_ptr<__m128d[], SIMD_delete>((__m128d*)_mm_malloc(length * sizeof(__m128d), 16), deletor);
^
In file included from mini-pi_optimized_3_OpenMP.cpp:51:0:
/usr/lib/gcc/x86_64-linux-gnu/6/include/pmmintrin.h: In function ‘void Mini_Pi::fft_pointwise(__m128d*, __m128d*, int)’:
/usr/lib/gcc/x86_64-linux-gnu/6/include/pmmintrin.h:80:1: error: inlining failed in call to always_inline ‘__m128d _mm_addsub_pd(__m128d, __m128d)’: target specific option mismatch
_mm_addsub_pd (__m128d __X, __m128d __Y)
^~~~~~~~~~~~~
mini-pi_optimized_3_OpenMP.cpp:299:29: note: called from here
T[c] = _mm_addsub_pd(c0, d0);
~~~~~~~~~~~~~^~~~~~~~
In file included from mini-pi_optimized_3_OpenMP.cpp:51:0:
/usr/lib/gcc/x86_64-linux-gnu/6/include/pmmintrin.h:80:1: error: inlining failed in call to always_inline ‘__m128d _mm_addsub_pd(__m128d, __m128d)’: target specific option mismatch
_mm_addsub_pd (__m128d __X, __m128d __Y)
^~~~~~~~~~~~~
mini-pi_optimized_3_OpenMP.cpp:299:29: note: called from here
T[c] = _mm_addsub_pd(c0, d0);
~~~~~~~~~~~~~^~~~~~~~
----------------------------------------------------------------------------
When I search the Internet for these errors, it sends me to a Microsoft page link
What to do? I do not want to use Windows or Visual Studio.