From c7e6b8302e95744d377466cd402ce9fbcbdf68a2 Mon Sep 17 00:00:00 2001 From: Andrey Shishpanov Date: Sun, 13 Mar 2016 15:13:07 +0300 Subject: [PATCH] For GCC -march=knl,-march=skx are not nesessary. Moreover, not all GCC versions support this. --- run_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_tests.py b/run_tests.py index 2774ab4c..41705747 100755 --- a/run_tests.py +++ b/run_tests.py @@ -270,9 +270,12 @@ def run_test(testname): elif (options.target == "knl-generic"): cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \ (options.compiler_exe, gcc_arch, "-xMIC-AVX512", match, obj_name, exe_name) - elif (options.target == "avx512knl-i32x16"): + elif (options.target == "avx512knl-i32x16" and options.compiler_exe == "clang++"): cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \ (options.compiler_exe, gcc_arch, "-march=knl", match, obj_name, exe_name) + elif (options.target == "avx512skx-i32x16" and options.compiler_exe == "clang++"): + cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \ + (options.compiler_exe, gcc_arch, "-march=skx", match, obj_name, exe_name) else: cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \ (options.compiler_exe, gcc_arch, gcc_isa, match, obj_name, exe_name)