Add buttons for STC & LTC using SMP

This commit is contained in:
AndyGrant committed 2018-09-23 12:49:09 -04:00
1 parent 9dbe572d1b
commit 7ffa1503b0
2 files changed
+31 -2

No files matched your search

+16 -2
View File
@@ -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,
+15
View File
@@ -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 @@
</form>
<button onClick="setupSTC()">Setup STC</button>
<button onClick="setupLTC()">Setup LTC</button>
<br>
<button onClick="setupSMPSTC()">Setup SMP STC</button>
<button onClick="setupSMPLTC()">Setup SMP LTC</button>
{% endblock %}