Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
EIC
benchmarks
physics_benchmarks
Commits
89e25aa5
Commit
89e25aa5
authored
4 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Added help
parent
8982daa4
No related branches found
No related tags found
1 merge request
!2
DVMP work
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/download_events.sh
+22
-0
22 additions, 0 deletions
util/download_events.sh
with
22 additions
and
0 deletions
util/download_events.sh
+
22
−
0
View file @
89e25aa5
...
@@ -11,6 +11,21 @@ echo "Download generator artifacts for one or more of the physics processes"
...
@@ -11,6 +11,21 @@ echo "Download generator artifacts for one or more of the physics processes"
PROCS
=()
PROCS
=()
BRANCH
=
"dvmp"
BRANCH
=
"dvmp"
function
print_the_help
{
echo
"USAGE:
$0
[-c config [[-c config ...]] script1 [script2...]"
echo
"OPTIONS:"
echo
" -p,--process Physics process name (can be defined multiple
times)."
echo
" -b,--branch Git branch to download artifacts from (D:
$BRANCH
)"
echo
" -h,--help Print this message"
echo
""
echo
" This script will download the relevant generator artifacts needed"
echo
" for local testing of the benchmarks."
exit
}
while
[
$#
-gt
0
]
while
[
$#
-gt
0
]
do
do
key
=
"
$1
"
key
=
"
$1
"
...
@@ -25,6 +40,10 @@ do
...
@@ -25,6 +40,10 @@ do
shift
# past argument
shift
# past argument
shift
# past value
shift
# past value
;;
;;
-h
|
--help
)
print_the_help
shift
;;
*
)
# unknown option
*
)
# unknown option
echo
"unknown option"
echo
"unknown option"
exit
1
exit
1
...
@@ -40,6 +59,9 @@ fi
...
@@ -40,6 +59,9 @@ fi
for
proc
in
${
PROCS
[@]
}
;
do
for
proc
in
${
PROCS
[@]
}
;
do
echo
"Dowloading artifacts for
$proc
(branch:
$BRANCH
)"
echo
"Dowloading artifacts for
$proc
(branch:
$BRANCH
)"
wget https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks/-/jobs/artifacts/
$BRANCH
/download?job
=
${
proc
}
:jpsi_central:generate
-O
results.zip
wget https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks/-/jobs/artifacts/
$BRANCH
/download?job
=
${
proc
}
:jpsi_central:generate
-O
results.zip
echo
"Unpacking artifacts..."
unzip
-u
results.zip
unzip
-u
results.zip
echo
"Cleaning up..."
rm
results.zip
rm
results.zip
done
done
echo
"All done"
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