checking targets in perf.py
This commit is contained in:
9
perf.py
9
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:
|
||||
|
||||
Reference in New Issue
Block a user