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
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
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
Christopher Henry Hollowell
hep-workloads
Commits
8aab2f43
Commit
8aab2f43
authored
6 years ago
by
Domenico Giordano
Browse files
Options
Downloads
Patches
Plain Diff
BMK-36, updated the alice script to use new version
parent
4fdd4c27
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alice/gen-sim/alice-dpgsim-bmk/alice-dpgsim-bmk.sh
+8
-27
8 additions, 27 deletions
alice/gen-sim/alice-dpgsim-bmk/alice-dpgsim-bmk.sh
with
8 additions
and
27 deletions
alice/gen-sim/alice-dpgsim-bmk/alice-dpgsim-bmk.sh
+
8
−
27
View file @
8aab2f43
...
...
@@ -12,36 +12,15 @@ function doOne(){
ln
-s
$BMKDIR
/environment environment
ln
-s
$BMKDIR
/GeneratorCustom.C GeneratorCustom.C
ln
-s
$BMKDIR
/GenParamCustomSingle.C GenParamCustomSingle.C
ln
-s
$BMKDIR
/OCDBrec.root OCDBrec.root
ln
-s
$BMKDIR
/OCDBsim.root OCDBsim.root
ln
-s
$BMKDIR
/
data/
OCDBrec.root OCDBrec.root
ln
-s
$BMKDIR
/
data/
OCDBsim.root OCDBsim.root
./dpgsim.sh
--run
2
64035
--mode
sim
--uid
1
--nevents
$nevents
--generator
Custom
--system
2>&1
>
out_
$1
.log
./dpgsim.sh
--run
2
92839
--mode
sim
--uid
1
--nevents
$nevents
--generator
Custom
--system
2>&1
>
out_
$1
.log
[
$DEBUG
-gt
0
]
&&
echo
-e
"
\n
`
date
`
: done process
$i
\n
"
}
function
parseResults
(){
STATUS
=
0
echo
"Parsing results from "
$BASE_WDIR
/proc_
*
/time.useronly
#Parsing Event Throughput: xxxx ev/s
res
=
`
cat
$BASE_WDIR
/proc_
*
/time.useronly |
awk
-v
nevents
=
$nevents
'
BEGIN{amin=1000000;amax=0;count=0;}
{ if ($1>0) {val=( int(nevents*1.) / int($1*1.) ); a[count]=val; count+=1; sum+=val; if(amax<val) amax=val; if(amin>val) amin=val} }
END{sep=sprintf("%*s", 120, "");gsub(/ /, "*", sep);n=asort(a);
if (n % 2) {
median=a[(n + 1) / 2];
} else {
median=(a[(n / 2)] + a[(n / 2) + 1]) / 2.0;
}; printf "{\"score\": %.4f, \"avg\": %.4f, \"median\": %.4f, \"min\": %.4f, \"max\": %.4f}", sum, sum/count, median, amin, amax
}'
||
(
STATUS
=
1
;
echo
"
\"
[ERROR] Something went wrong in parsing the CPU score
\"
"
)
`
echo
-e
"{
\"
copies
\"
:
$ncopies
,
\"
threads_x_copy
\"
:
$NTHREADS
,
\"
events_x_thread
\"
:
$nevents
,
\"
CPU_score
\"
:
$res
,
\"
app
\"
:
\"
ALICE_pp_dpgsim
\"
}"
>
$BASE_WDIR
/
${
APP
}
_summary.json
cat
$BASE_WDIR
/
${
APP
}
_summary.json
return
$STATUS
}
export
APP
=
`
basename
$0
-bmk
.sh
`
export
RESULTS_DIR
=
/results
...
...
@@ -69,7 +48,7 @@ while getopts "w:n:e:dh" o; do
DEBUG
=
1
;;
h
)
echo
"usage:
$0
[-e <num_events_x_thread [
$nevents
]>] -n <num_copies [
$ncopies
]> [-d (for debug verbosity)] -w"
echo
"usage:
$0
[-e <num_events_x_thread [
$nevents
]>] -n <num_copies [
$ncopies
]> [-d (for debug verbosity)]
[
-w
result_dir]
"
exit
0
;;
esac
...
...
@@ -89,11 +68,12 @@ echo "nevents x thread=$nevents"
cd
`
dirname
$0
`
export
BMKDIR
=
`
pwd
`
export
BASE_WDIR
=
${
RESULTS_DIR
}
/
test_
${
APP
}
-n
${
ncopies
}
-e
${
nevents
}
-
${
DATETAG
}
_
$((
(
RANDOM%9000
)+
1000
))
export
BASE_WDIR
=
${
RESULTS_DIR
}
/
${
APP
}
-n
${
ncopies
}
-e
${
nevents
}
-
${
DATETAG
}
_
$((
(
RANDOM%9000
)+
1000
))
echo
"BASE WORKING DIR=
$BASE_WDIR
"
/cvmfs/alice.cern.ch/bin/alienv
printenv
VO_ALICE@AliDPG::v5-09-XX-15,VO_ALICE@AliPhysics::v5-09-09-01-1 &>environment
/cvmfs/alice.cern.ch/bin/alienv
printenv
VO_ALICE@AliDPG::prod-201901-02-1,VO_ALICE@AliPhysics::v5-09-45a-01-1 &>environment
source
environment
...
...
@@ -113,5 +93,6 @@ do
done
[
$DEBUG
-gt
0
]
&&
echo
"FAILS "
$FAIL
.
./parseResults.sh
parseResults
exit
$?
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