From 7ffa1503b034e935b01a755d11ff0dcbf18f5147 Mon Sep 17 00:00:00 2001 From: AndyGrant Date: Sun, 23 Sep 2018 12:49:09 -0400 Subject: [PATCH] Add buttons for STC & LTC using SMP --- OpenBench/config.py | 18 ++++++++++++++++-- Templates/OpenBench/newTest.html | 15 +++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/OpenBench/config.py b/OpenBench/config.py index 44ba709..6bfa666 100644 --- a/OpenBench/config.py +++ b/OpenBench/config.py @@ -10,20 +10,34 @@ FRAMEWORK_DEFAULTS = { # Default to uci since everyone uses it 'protocol' : 'uci', - # Defaults for Short Time Control tests (default on newTest) + # Defaults for Short Time Control tests 'stc' : { 'threads' : 1, 'hash' : 8, 'timecontrol' : '10.0+0.1', }, - # Defaults for Long Time Control tests (ease of submitting LTC) + # Defaults for Long Time Control tests 'ltc' : { 'threads' : 1, 'hash' : 64, 'timecontrol' : '60.0+0.6', }, + # Defaults for Short Time Control tests with SMP + 'smpstc' : { + 'threads' : 8, + 'hash' : 64, + 'timecontrol' : '5.0+0.05', + }, + + # Defaults for Long Time Control tests with SMP + 'smpltc' : { + 'threads' : 8, + 'hash' : 256, + 'timecontrol' : '20.0+0.2', + }, + # SPRT bounds and confidence values 'elolower' : 0.0, 'eloupper' : 5.0, diff --git a/Templates/OpenBench/newTest.html b/Templates/OpenBench/newTest.html index 27d0630..7d6de6c 100644 --- a/Templates/OpenBench/newTest.html +++ b/Templates/OpenBench/newTest.html @@ -12,6 +12,18 @@ document.getElementById("baseoptions").value = "Threads={{config.ltc.threads}} Hash={{config.ltc.hash}}"; document.getElementById("timecontrol").value = "{{config.ltc.timecontrol}}" } + + function setupSMPSTC() { + document.getElementById("devoptions").value = "Threads={{config.smpstc.threads}} Hash={{config.smpstc.hash}}"; + document.getElementById("baseoptions").value = "Threads={{config.smpstc.threads}} Hash={{config.smpstc.hash}}"; + document.getElementById("timecontrol").value = "{{config.smpstc.timecontrol}}" + } + + function setupSMPLTC() { + document.getElementById("devoptions").value = "Threads={{config.smpltc.threads}} Hash={{config.smpltc.hash}}"; + document.getElementById("baseoptions").value = "Threads={{config.smpltc.threads}} Hash={{config.smpltc.hash}}"; + document.getElementById("timecontrol").value = "{{config.smpltc.timecontrol}}" + } {% endblock %} {% block content %} @@ -91,4 +103,7 @@ +
+ + {% endblock %}