From 5fde447ff03266c37214b6675bb79388126187d1 Mon Sep 17 00:00:00 2001 From: Andrew Grant Date: Mon, 18 Apr 2022 08:40:31 -0400 Subject: [PATCH] Fixed TP values; Fix max() on empty list --- OpenBench/config.py | 2 +- OpenBench/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenBench/config.py b/OpenBench/config.py index 6272f06..2c7217b 100644 --- a/OpenBench/config.py +++ b/OpenBench/config.py @@ -40,7 +40,7 @@ OPENBENCH_CONFIG = { 'tests' : { 'max_games' : '20000', # Default for Fixed Games 'confidence' : '[0.05, 0.05]', # SPRT Type I/II Confidence - 'throughput' : { 'stc' : 1000, 'ltc' : 500, 'smpstc' : 1000, 'smpltc' : 500 }, + 'throughput' : { 'stc' : 1000, 'ltc' : 1000, 'smpstc' : 1000, 'smpltc' : 1000 }, }, # Book Configuration. When addding a book, follow the provided template. diff --git a/OpenBench/utils.py b/OpenBench/utils.py index b352d20..7bb08b5 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -359,6 +359,7 @@ def get_valid_workloads(machine, request): options = [x for x in tests if test_maps_onto_thread_count(machine, x)] # Finally refine for tests of the highest priority + if not options: return [] highest_prio = max(options, key=lambda x: x.priority).priority return [test for test in options if test.priority == highest_prio]