From 4b3b293ba7cd4806472060ce3e00b5b8478a501e Mon Sep 17 00:00:00 2001 From: Anton Mitrokhin Date: Tue, 8 Jul 2014 13:50:24 +0400 Subject: [PATCH] ... != Windows -> ... == Linux in knc target generation --- alloy.py | 2 +- common.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/alloy.py b/alloy.py index c08443a4..1fd9bd14 100755 --- a/alloy.py +++ b/alloy.py @@ -253,7 +253,7 @@ def check_targets(): targets[j][2] = True break # generate targets for KNC - if current_OS != "Windows": + if current_OS == "Linux": answer_knc = ["knc"] if current_OS != "Windows": diff --git a/common.py b/common.py index 6ec33f33..9fe611f0 100755 --- a/common.py +++ b/common.py @@ -36,6 +36,16 @@ import sys import os import errno import shutil +class ExecutionStatGatherer: + def __init__(self): + optimizations = ['O0', 'O2'] + architectures = ['x86', 'x86-64'] + all_est_targets = ['sse2-i32x4', 'sse2-i32x8', 'sse4-i32x4', 'sse4-i32x8', 'sse4-i16x8', + 'sse4-i8x16', 'avx1-i32x8', 'avx1-i32x16', 'avx1.1-i32x8', + 'avx1.1-i32x16', 'avx2-i32x8', 'avx2-i32x16', 'generic-x1', + 'generic-x4', 'generic-x8', 'generic-x16', 'generic-x32', + 'generic-x64', 'knc'] + def write_to_file(filename, line): f = open(filename, 'a')