Skip to content

Commit 24e3440

Browse files
authored
Merge pull request #1654 from martin-frbg/avx512check
Add compiler option to avx512 test and hide test output
2 parents ba8388c + f5243e8 commit 24e3440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ $no_avx512= 0;
205205
if (($architecture eq "x86") || ($architecture eq "x86_64")) {
206206
$code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
207207
print $tmpf "int main(void){ __asm__ volatile($code); }\n";
208-
$args = " -o $tmpf.o -x c $tmpf";
209-
my @cmd = ("$compiler_name $args");
208+
$args = " -march=skylake-avx512 -o $tmpf.o -x c $tmpf";
209+
my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null");
210210
system(@cmd) == 0;
211211
if ($? != 0) {
212212
$no_avx512 = 1;

0 commit comments

Comments
 (0)