Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hep-workloads
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HEP-Benchmarks
hep-workloads
Commits
430b711c
Commit
430b711c
authored
5 years ago
by
Christopher Henry Hollowell
Browse files
Options
Downloads
Plain Diff
Merge branch 'reptest' into qa
parents
9663590e
a0affeb7
No related branches found
No related tags found
4 merge requests
!239
Qa
,
!237
merge from qa
,
!230
Huge set of changes to move to new code refactory
,
!171
Include example usage in reptest
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/reptest
+17
-3
17 additions, 3 deletions
test/reptest
with
17 additions
and
3 deletions
test/reptest
+
17
−
3
View file @
430b711c
...
@@ -11,6 +11,9 @@ RUNS = 50
...
@@ -11,6 +11,9 @@ RUNS = 50
REGISTRY
=
'
gitlab-registry.cern.ch/hep-benchmarks/hep-workloads
'
REGISTRY
=
'
gitlab-registry.cern.ch/hep-benchmarks/hep-workloads
'
def
help
():
def
help
():
global
RUNS
print
"
reptest {-sd} [-v] [-r RUNS] [-L | -R REGISTRY] OUTPUTDIR BENCHMARK [BENCHMARK_OPTIONS] ...}
"
print
"
reptest {-sd} [-v] [-r RUNS] [-L | -R REGISTRY] OUTPUTDIR BENCHMARK [BENCHMARK_OPTIONS] ...}
"
print
"
reptest -h
"
print
"
reptest -h
"
print
"
Option overview:
"
print
"
Option overview:
"
...
@@ -18,9 +21,15 @@ def help():
...
@@ -18,9 +21,15 @@ def help():
print
"
-v Display verbose output, including all scores
"
print
"
-v Display verbose output, including all scores
"
print
"
-d Run Docker test
"
print
"
-d Run Docker test
"
print
"
-s Run Singularity test
"
print
"
-s Run Singularity test
"
print
"
-n RUNS Number of runs to execute
"
print
"
-n RUNS Number of runs to execute (default
"
+
str
(
RUNS
)
+
"
)
"
print
"
-R REGISTRY Use an alternate (intead of official) Docker registry
"
print
"
-R REGISTRY Use an alternate (instead of official) Docker registry
"
print
"
-L Run container via local Docker daemon (cannot be used with -s)
\n
"
print
"
-L Run container via local Docker daemon (cannot be used with -s)
"
print
"
\n
Examples
"
print
"
--------
"
print
"
Run
'
lhcb-gen-sim
'
10 times in Docker and Singularity, displaying all scores:
"
print
"
reptest -sdv -n 10 /tmp/hwoutput lhcb-gen-sim
"
print
"
Run
'
atlas-sim-bmk
'
5 times in Docker:
"
print
"
reptest -d -n 5 /tmp/hwoutput atlas-sim-bmk
"
def
procres
(
rpath
,
verbose
):
def
procres
(
rpath
,
verbose
):
...
@@ -53,6 +62,11 @@ def procres(rpath, verbose):
...
@@ -53,6 +62,11 @@ def procres(rpath, verbose):
score
=
jscore
[
score_key
][
'
score
'
]
score
=
jscore
[
score_key
][
'
score
'
]
if
verbose
:
if
verbose
:
print
score
print
score
try
:
float
(
score
)
except
ValueError
:
print
"
\n
Error: invalid score for one or more runs!
"
sys
.
exit
(
2
)
scores
.
append
(
score
)
scores
.
append
(
score
)
if
len
(
scores
)
!=
RUNS
:
if
len
(
scores
)
!=
RUNS
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment