Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions OpenBench/workloads/verify_workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def verify_spsa_inputs(errors, request, field):
name, data_type, value, minimum, maximum, c, r = line.split(',')

if data_type.strip() not in [ 'int', 'float' ]:
errors.append('Datatype must be int for float, for %s' % (name))
errors.append('Datatype must be int or float, for %s' % (name))

if float(minimum) > float(maximum):
errors.append('Max does not exceed Min, for %s' % (name))
Expand All @@ -324,6 +324,9 @@ def verify_spsa_inputs(errors, request, field):
if data_type.strip() == 'float' and float(c) <= 0.00:
errors.append('C for floats must be > 0.00, for %s' % (name))

if data_type.strip() == 'int' and float(c) < 0.50:
errors.append('C for ints must be >= 0.50, for %s' % (name))

if float(r) <= 0.00:
errors.append('R must be > 0.00, for %s' % (name))

Expand Down Expand Up @@ -501,4 +504,4 @@ def fetch_artifact_url(base, engine, headers, sha):

except Exception as error:
# If anything goes wrong, retry later with the same base URL
return (base, False)
return (base, False)