run_tests.py will only attempt to use the -mmic flag when the knc.h header is used
This commit is contained in:
@@ -264,13 +264,15 @@ def run_test(filename):
|
|||||||
else:
|
else:
|
||||||
gcc_arch = '-m64'
|
gcc_arch = '-m64'
|
||||||
|
|
||||||
|
gcc_isa=""
|
||||||
if options.target == 'sse2' or options.target == 'sse2-x2':
|
if options.target == 'sse2' or options.target == 'sse2-x2':
|
||||||
gcc_isa = '-msse3'
|
gcc_isa = '-msse3'
|
||||||
if options.target == 'sse4' or options.target == 'sse4-x2' or options.target == 'generic-4':
|
if options.target == 'sse4' or options.target == 'sse4-x2' or options.target == 'generic-4':
|
||||||
gcc_isa = '-msse4.2'
|
gcc_isa = '-msse4.2'
|
||||||
if options.target == 'avx' or options.target == 'avx-x2' or options.target == 'generic-16':
|
if options.target == 'avx' or options.target == 'avx-x2' or options.target == 'generic-8':
|
||||||
gcc_isa = '-mavx'
|
gcc_isa = '-mavx'
|
||||||
if options.target == 'generic-16' or options.target == 'generic-32' or options.target == 'generic-64':
|
if (options.target == 'generic-16' or options.target == 'generic-32' or options.target == 'generic-64') \
|
||||||
|
and (options.include_file.find("knc.h")!=-1 or options.include_file.find("knc2x.h")!=-1):
|
||||||
gcc_isa = '-mmic'
|
gcc_isa = '-mmic'
|
||||||
|
|
||||||
cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \
|
cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \
|
||||||
|
|||||||
Reference in New Issue
Block a user