Mentions légales du service

Skip to content
Snippets Groups Projects

add_result.py: trigger a regression error only if the measured gflops value is...

Merged PRUVOST Florent requested to merge fpruvost/chameleon:benchmark into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -190,7 +190,7 @@ def format_entry_stats(row: Row, mpivendor: str, commit_chameleon: Repo, commit_
@@ -190,7 +190,7 @@ def format_entry_stats(row: Row, mpivendor: str, commit_chameleon: Repo, commit_
previousSD = thresholdSD
previousSD = thresholdSD
maxAcceptableDiff = multiplier*previousSD
maxAcceptableDiff = multiplier*previousSD
diff = abs(currentV-previousMean)
diff = abs(currentV-previousMean)
if diff > maxAcceptableDiff:
if diff > maxAcceptableDiff and currentV < previousMean:
print("Regression: inputs %(Hostname)s, %(MPIvendor)s, %(Algorithm)s, %(Precision)s, %(Nmpi)s, %(P)s, %(Q)s, %(Nthread)s, %(Ngpu)s, %(M)s, %(N)s, %(K)s " % result)
print("Regression: inputs %(Hostname)s, %(MPIvendor)s, %(Algorithm)s, %(Precision)s, %(Nmpi)s, %(P)s, %(Q)s, %(Nthread)s, %(Ngpu)s, %(M)s, %(N)s, %(K)s " % result)
print("Regression: outputs Gflops={0}, previousMean={1}, diff={2}, maxAcceptableDiff={3}".format(currentV, previousMean, diff, maxAcceptableDiff))
print("Regression: outputs Gflops={0}, previousMean={1}, diff={2}, maxAcceptableDiff={3}".format(currentV, previousMean, diff, maxAcceptableDiff))
# make the script fail only if regression for not too small matrices
# make the script fail only if regression for not too small matrices
Loading