Merge pull request #588 from egaburov/knc-modes

Added knc-i1x16.h , knc-i1x8.h and knc-i1x8unsafe_fast.h
This commit is contained in:
jbrodman
2013-09-27 11:20:56 -07:00
4 changed files with 6454 additions and 2 deletions

View File

@@ -233,10 +233,13 @@ def run_test(testname):
gcc_isa=""
if options.target == 'generic-4':
gcc_isa = '-msse4.2'
if options.target == 'generic-8':
if (options.target == 'generic-8'):
if (options.include_file.find("knc-i1x8.h")!=-1 or options.include_file.find("knc-i1x8unsafe_fast.h")!=-1):
gcc_isa = '-mmic'
else:
gcc_isa = '-mavx'
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):
and (options.include_file.find("knc-i1x16.h")!=-1 or options.include_file.find("knc.h")!=-1 or options.include_file.find("knc2x.h")!=-1):
gcc_isa = '-mmic'
cc_cmd = "%s -O2 -I. %s %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \