From 7c4a41a96b3569c4306f1ad5ec1ac8814b48c456 Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Fri, 10 Nov 2017 03:08:08 +0100 Subject: [PATCH] Revert "Use -mavx2 -mfma instead of -march with AVX2" This reverts commit 062a6b81498b61b2bfc4ec7441b844d76aae445b. Reason for revert: Breaks support for ICC (16-18) which doesn't have -mavx2 or -mfma. Change-Id: I01cf3e9db332a405fd9419b6382240f5fcecf633 --- cmake/gmxManageSimd.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/gmxManageSimd.cmake b/cmake/gmxManageSimd.cmake index efcb9244a1..de0eb5d770 100644 --- a/cmake/gmxManageSimd.cmake +++ b/cmake/gmxManageSimd.cmake @@ -289,7 +289,7 @@ elseif(GMX_SIMD_ACTIVE MATCHES "AVX2_") int main(){__m256i x=_mm256_set1_epi32(5);x=_mm256_add_epi32(x,x);return _mm256_movemask_epi8(x);}" TOOLCHAIN_C_FLAGS TOOLCHAIN_CXX_FLAGS SIMD_${GMX_SIMD_ACTIVE}_C_FLAGS SIMD_${GMX_SIMD_ACTIVE}_CXX_FLAGS - "-mavx2 -mfma" "-mavx2" "/arch:AVX" "-hgnu") # no AVX2-specific flag for MSVC yet + "-march=core-avx2" "-mavx2" "/arch:AVX" "-hgnu") # no AVX2-specific flag for MSVC yet if(NOT SIMD_${GMX_SIMD_ACTIVE}_C_FLAGS OR NOT SIMD_${GMX_SIMD_ACTIVE}_CXX_FLAGS) gmx_give_fatal_error_when_simd_support_not_found("AVX2" "choose AVX SIMD (slower)" "${SUGGEST_BINUTILS_UPDATE}") -- 2.11.4.GIT