From 924858509d5e1b29e18a8f429e05ac30da4af910 Mon Sep 17 00:00:00 2001 From: Ilia Filippov Date: Thu, 21 Nov 2013 19:05:35 +0400 Subject: [PATCH] checking targets in perf.py --- perf.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perf.py b/perf.py index bb1f5b91..1b9de452 100755 --- a/perf.py +++ b/perf.py @@ -332,6 +332,15 @@ def perf(options1, args): if is_windows: pwd1 = "..\\..\\" + if options.perf_target != "": + test_only_r = " sse2-i32x4 sse2-i32x8 sse4-i32x4 sse4-i32x8 sse4-i16x8 \ + sse4-i8x16 avx1-i32x8 avx1-i32x16 avx1-i64x4 avx1.1-i32x8 \ + avx1.1-i32x16 avx1.1-i64x4 avx2-i32x8 avx2-i32x16 avx2-i64x4 " + test_only = options.perf_target.split(" ") + for iterator in test_only: + if not (" " + iterator + " " in test_only_r): + error("unknow option for target: " + iterator, 1) + # check if cpu usage is low now cpu_percent = cpu_check() if cpu_percent > 20: