Add compiler option to avx512 test and hide test output
This commit is contained in:
parent
c38c65eb65
commit
f5243e8e1f
4
c_check
4
c_check
|
@ -205,8 +205,8 @@ $no_avx512= 0;
|
||||||
if (($architecture eq "x86") || ($architecture eq "x86_64")) {
|
if (($architecture eq "x86") || ($architecture eq "x86_64")) {
|
||||||
$code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
|
$code = '"vbroadcastss -4 * 4(%rsi), %zmm2"';
|
||||||
print $tmpf "int main(void){ __asm__ volatile($code); }\n";
|
print $tmpf "int main(void){ __asm__ volatile($code); }\n";
|
||||||
$args = " -o $tmpf.o -x c $tmpf";
|
$args = " -march=skylake-avx512 -o $tmpf.o -x c $tmpf";
|
||||||
my @cmd = ("$compiler_name $args");
|
my @cmd = ("$compiler_name $args >/dev/null 2>/dev/null");
|
||||||
system(@cmd) == 0;
|
system(@cmd) == 0;
|
||||||
if ($? != 0) {
|
if ($? != 0) {
|
||||||
$no_avx512 = 1;
|
$no_avx512 = 1;
|
||||||
|
|
Loading…
Reference in New Issue