From 8cb5f311c6d03a0d282497992c9b92acf6a9fe62 Mon Sep 17 00:00:00 2001 From: Anton Mitrokhin Date: Fri, 20 Mar 2015 15:55:00 +0300 Subject: [PATCH] knl (through sde) target support for alloy.py --- alloy.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/alloy.py b/alloy.py index e07bcfd9..4c37007c 100755 --- a/alloy.py +++ b/alloy.py @@ -293,8 +293,10 @@ def check_targets(): AVX = ["avx1-i32x4", "avx1-i32x8", "avx1-i32x16", "avx1-i64x4"] AVX11 = ["avx1.1-i32x8","avx1.1-i32x16","avx1.1-i64x4"] AVX2 = ["avx2-i32x8", "avx2-i32x16", "avx2-i64x4"] + KNL = ["knl"] - targets = [["AVX2", AVX2, False], ["AVX1.1", AVX11, False], ["AVX", AVX, False], ["SSE4", SSE4, False], ["SSE2", SSE2, False]] + targets = [["AVX2", AVX2, False], ["AVX1.1", AVX11, False], ["AVX", AVX, False], ["SSE4", SSE4, False], + ["SSE2", SSE2, False], ["KNL", KNL, False]] f_lines = take_lines("check_isa.exe", "first") for i in range(0,5): if targets[i][0] in f_lines: @@ -329,6 +331,8 @@ def check_targets(): # here we have SDE f_lines = take_lines(sde_exists + " -help", "all") for i in range(0,len(f_lines)): + if targets[5][2] == False and "knl" in f_lines[i]: + answer_sde = answer_sde + [["-knl", "knl"]] if targets[3][2] == False and "wsm" in f_lines[i]: answer_sde = answer_sde + [["-wsm", "sse4-i32x4"], ["-wsm", "sse4-i32x8"], ["-wsm", "sse4-i16x8"], ["-wsm", "sse4-i8x16"]] if targets[2][2] == False and "snb" in f_lines[i]: @@ -872,8 +876,8 @@ if __name__ == '__main__': "Try to build compiler with all LLVM\n\talloy.py -r --only=build\n" + "Performance validation run with 10 runs of each test and comparing to branch 'old'\n\talloy.py -r --only=performance --compare-with=old --number=10\n" + "Validation run. Update fail_db.txt with new fails, send results to my@my.com\n\talloy.py -r --update-errors=F --notify='my@my.com'\n" + - "Test KNC target (not tested when tested all supported targets, so should be set explicitly via --only-targets)\n\talloy.py -r --only='stability' --only-targets='knc'\n") - + "Test KNC target (not tested when tested all supported targets, so should be set explicitly via --only-targets)\n\talloy.py -r --only='stability' --only-targets='knc'\n" + + "Test KNL target (requires sde)\n\talloy.py -r --only='stability' --only-targets='knl'\n") num_threads="%s" % multiprocessing.cpu_count() parser = MyParser(usage="Usage: alloy.py -r/-b [options]", epilog=examples)