ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.06k stars 413 forks source link

Update CMakeLists.txt for supporting gcc4.8 #120

Closed AlexanderKomarov closed 4 years ago

AlexanderKomarov commented 4 years ago

Update CMakeLists.txt for supporting gcc4.8 without passing this flag we get this error:

"In file included from /tmp/Synet/3rd/Simd/prj/cmake/../../src/Simd/SimdMemory.h:29:0, from /tmp/Synet/3rd/Simd/src/Simd/SimdLib.cpp:57: /tmp/Synet/3rd/Simd/prj/cmake/../../src/Simd/SimdMath.h: In function '__m256 Simd::Avx2::Fmadd(__m256, __m256, __m256) [with bool compatible = false; __m256 = __vector(8) float]': /tmp/Synet/3rd/Simd/prj/cmake/../../src/Simd/SimdMath.h:804:43: error: '_mm256_fmadd_ps' was not declared in this scope return _mm256_fmadd_ps(a, b, c);"