From f5243e8e1fc585147e8b6e1553232f5f868eff1d Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 30 Jun 2018 23:47:44 +0200 Subject: [PATCH] Add compiler option to avx512 test and hide test output --- c_check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_check b/c_check index cc64c16c6..3831d7aa3 100644 --- a/c_check +++ b/c_check @@ -205,8 +205,8 @@ $no_avx512= 0; if (($architecture eq "x86") || ($architecture eq "x86_64")) { $code = '"vbroadcastss -4 * 4(%rsi), %zmm2"'; print $tmpf "int main(void){ __asm__ volatile($code); }\n"; - $args = " -o $tmpf.o -x c $tmpf"; - my @cmd = ("$compiler_name $args"); + $args = " -march=skylake-avx512 -o $tmpf.o -x c $tmpf"; + my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null"); system(@cmd) == 0; if ($? != 0) { $no_avx512 = 1;