Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
f1b1771a
Commit
f1b1771a
authored
Mar 31, 2016
by
Martin Khannouz
Committed by
Berenger Bramas
Mar 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change a script to quickly compile and execute mpi test.
parent
e9dd6cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
30 deletions
+35
-30
compile_dag_result.sh
compile_dag_result.sh
+35
-30
No files found.
compile_dag_result.sh
View file @
f1b1771a
#!/bin/sh
export
SCALFMM_SIMGRIDOUT
=
'scalfmm.out'
export
STARPU_STATS
=
1
export
GROUP_SIZE
=
8
export
TREE_HEIGHT
=
3
export
NB_NODE
=
8
export
NB_PARTICLE_PER_NODE
=
$((
`
awk
"BEGIN{print 8 ** (
$TREE_HEIGHT
-1)}"
`
/
$NB_NODE
))
export
GROUP_SIZE
=
500
export
TREE_HEIGHT
=
5
export
NB_NODE
=
16
#export NB_PARTICLE_PER_NODE=$(( (`awk "BEGIN{print 8 ** ($TREE_HEIGHT-1)}"` / $NB_NODE) ))
export
NB_PARTICLE_PER_NODE
=
15000
echo
"GROUP_SIZE=
$GROUP_SIZE
"
echo
"TREE_HEIGHT=
$TREE_HEIGHT
"
echo
"NB_NODE=
$NB_NODE
"
echo
"NB_PARTICLE_PER_NODE=
$NB_PARTICLE_PER_NODE
"
#Compile only what we need
make testBlockedImplicit
Algorithm generateMapping
testBlockedMpiAlgorithm compareDAGmapping
-j
$((
`
nproc
`
*
2
))
make testBlockedImplicit
Chebyshev testBlockedMpiChebyshev testBlockedImplicitAlgorithm
testBlockedMpiAlgorithm compareDAGmapping
-j
$((
`
nproc
`
*
2
))
if
[
$?
-ne
0
]
;
then
exit
fi
#Execute explicit mpi version
mpiexec
-n
$NB_NODE
./Tests/Release/testBlockedMpiAlgorithm
-nb
$NB_PARTICLE_PER_NODE
-bs
$GROUP_SIZE
-h
$TREE_HEIGHT
sleep
10
mpiexec
-n
$NB_NODE
./Tests/Release/testBlockedMpiAlgorithm
-nb
$NB_PARTICLE_PER_NODE
-bs
$GROUP_SIZE
-h
$TREE_HEIGHT
2>/dev/null
if
[
$?
-ne
0
]
;
then
echo
echo
" /!
\\
Error on explicit"
echo
exit
fi
#Aggregate task information from explicit execution
a
=
`
ls
$SCALFMM_SIMGRIDOUT
\_
*
`
rm
-f
$SCALFMM_SIMGRIDOUT
echo
$a
for
i
in
$a
;
do
cat
$i
>>
$SCALFMM_SIMGRIDOUT
done
#Get task information
cp
-f
$SCALFMM_SIMGRIDOUT
scalfmm_explicit.out
#Get task information from fxt
#a=`ls $STARPU_FXT_PREFIX/../installprof*`
#ARG_FXT_TOO=""
#for i in $a; do
#ARG_FXT_TOO="$ARG_FXT_TOO -i $i"
#done
#$STARPU_DIR/bin/starpu_fxt_tool $ARG_FXT_TOO
#cp $STARPU_FXT_PREFIX/../trace.rec explicit.rec
#rm -f $STARPU_FXT_PREFIX/../installprof*
#Generate mapping for implicite version
mpiexec
-n
$NB_NODE
./Tests/Release/generateMapping
-nb
$NB_PARTICLE_PER_NODE
-bs
$GROUP_SIZE
-h
$TREE_HEIGHT
>
/dev/null
#
mpiexec -n $NB_NODE ./Tests/Release/generateMapping -nb $NB_PARTICLE_PER_NODE -bs $GROUP_SIZE -h $TREE_HEIGHT > /dev/null
#Execute implicit version
mpiexec
-n
$NB_NODE
./Tests/Release/testBlockedImplicitAlgorithm
-map
mapping
-f
canard.fma
-bs
$GROUP_SIZE
-h
$TREE_HEIGHT
sleep
10
mpiexec
-n
$NB_NODE
./Tests/Release/testBlockedImplicitAlgorithm
-f
canard.fma
-bs
$GROUP_SIZE
-h
$TREE_HEIGHT
2>/dev/null
if
[
$?
-ne
0
]
;
then
echo
echo
" /!
\\
Error on implicit"
echo
exit
fi
#Get task information
cp
-f
scalfmm.out_0 scalfmm_implicit.out
#Get task information from fxt
a
=
`
ls
$STARPU_FXT_PREFIX
/../installprof
*
`
#ARG_FXT_TOO=""
#for i in $a; do
#ARG_FXT_TOO="$ARG_FXT_TOO -i $i"
#done
#$STARPU_DIR/bin/starpu_fxt_tool $ARG_FXT_TOO
#cp $STARPU_FXT_PREFIX/../trace.rec implicit.rec
#rm -f $STARPU_FXT_PREFIX/../installprof*
#Compare DAGs
./Tests/Release/compareDAGmapping
-e
scalfmm_explicit.out
-i
scalfmm_implicit.out
-h
$TREE_HEIGHT
./Tests/Release/compareDAGmapping
-e
scalfmm_explicit.out
-i
scalfmm_implicit.out
-h
$TREE_HEIGHT
>
output
sleep
10
mpiexec
-n
$NB_NODE
./Tests/Release/testBlockedMpiChebyshev
-nb
$NB_PARTICLE_PER_NODE
-bs
$GROUP_SIZE
-h
$TREE_HEIGHT
2>/dev/null
if
[
$?
-ne
0
]
;
then
echo
echo
" /!
\\
Error on explicit Chebyshev"
echo
exit
fi
sleep
10
mpiexec
-n
$NB_NODE
./Tests/Release/testBlockedImplicitChebyshev
-f
canard.fma
-bs
$GROUP_SIZE
-h
$TREE_HEIGHT
2>/dev/null
if
[
$?
-ne
0
]
;
then
echo
echo
" /!
\\
Error on implicit Chebyshev"
echo
exit
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment