Fixed TP values; Fix max() on empty list
This commit is contained in:
1 parent
4a2f961ffc
commit
5fde447ff0
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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.
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user