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
5ab0fcfe
Commit
5ab0fcfe
authored
5 years ago
by
Domenico Giordano
Browse files
Options
Downloads
Plain Diff
Merge branch 'qa' into 'qa'
Include example usage in reptest See merge request
!171
parents
8a0dbfe3
430b711c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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 @
5ab0fcfe
...
...
@@ -11,6 +11,9 @@ RUNS = 50
REGISTRY
=
'
gitlab-registry.cern.ch/hep-benchmarks/hep-workloads
'
def
help
():
global
RUNS
print
"
reptest {-sd} [-v] [-r RUNS] [-L | -R REGISTRY] OUTPUTDIR BENCHMARK [BENCHMARK_OPTIONS] ...}
"
print
"
reptest -h
"
print
"
Option overview:
"
...
...
@@ -18,9 +21,15 @@ def help():
print
"
-v Display verbose output, including all scores
"
print
"
-d Run Docker test
"
print
"
-s Run Singularity test
"
print
"
-n RUNS Number of runs to execute
"
print
"
-R REGISTRY Use an alternate (intead of official) Docker registry
"
print
"
-L Run container via local Docker daemon (cannot be used with -s)
\n
"
print
"
-n RUNS Number of runs to execute (default
"
+
str
(
RUNS
)
+
"
)
"
print
"
-R REGISTRY Use an alternate (instead of official) Docker registry
"
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
):
...
...
@@ -53,6 +62,11 @@ def procres(rpath, verbose):
score
=
jscore
[
score_key
][
'
score
'
]
if
verbose
:
print
score
try
:
float
(
score
)
except
ValueError
:
print
"
\n
Error: invalid score for one or more runs!
"
sys
.
exit
(
2
)
scores
.
append
(
score
)
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