For GCC -march=knl,-march=skx are not nesessary. Moreover, not all GCC versions support this.

This commit is contained in:
Andrey Shishpanov
2016-03-13 15:13:07 +03:00
parent d88240d227
commit c7e6b8302e

View File

@@ -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)