On compile error, force bench=0 to stop bad test. Fixes hangs
This commit is contained in:
1 parent
a1bbee9fcf
commit
869ce5487d
1 file changed
+4
@@ -231,6 +231,7 @@ def getCutechessCommand(data, scalefactor):
|
|||||||
|
|
||||||
def singleCoreBench(name, outqueue):
|
def singleCoreBench(name, outqueue):
|
||||||
|
|
||||||
|
try:
|
||||||
# Format file path because of Windows ....
|
# Format file path because of Windows ....
|
||||||
dir = os.path.join('Engines', getNameAsExe(name))
|
dir = os.path.join('Engines', getNameAsExe(name))
|
||||||
|
|
||||||
@@ -243,6 +244,9 @@ def singleCoreBench(name, outqueue):
|
|||||||
nps = int(data[-1].split(':')[1])
|
nps = int(data[-1].split(':')[1])
|
||||||
outqueue.put((bench, nps))
|
outqueue.put((bench, nps))
|
||||||
|
|
||||||
|
# Bad compile or bad output, force an error
|
||||||
|
except: outqueue.put((0, 0))
|
||||||
|
|
||||||
def getBenchSignature(engine):
|
def getBenchSignature(engine):
|
||||||
|
|
||||||
print ('\nRunning Benchmark for {0} on {1} cores'.format(engine['name'], THREADS))
|
print ('\nRunning Benchmark for {0} on {1} cores'.format(engine['name'], THREADS))
|
||||||
|
|||||||
Reference in new issue
Block a user