[go: up one dir, main page]

Menu

[49ee99]: / Parallel / prun.sh  Maximize  Restore  History

Download this file

34 lines (28 with data), 695 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# parameters: seq SeqMR MapMP MaPI
echo "Configuring parallel environment.."
export MALLOC_CHECK_=0
if [ "$1" = "seq" ]
then
echo "Running sequential application.."
./$2 example.opt
echo "End of sequential application.."
elif [ "$1" = "SeqMR" ]
then
echo "Running SeqMR application.."
./$2 exampleSeqMR.opt
echo "End of SeqMR application.."
elif [ "$1" = "MapMP" ]
then
echo "OptFrame+MapMP not implemented"
#echo "Running MapMP application.."
#./$2 exampleMapMP.opt
#echo "End of MapMP application.."
elif [ "$1" = "MaPI" ]
then
echo "Running MaPI application.."
NP=$3
mpirun -np $NP $2 exampleMaPI.opt $NP
echo "End of MaPI application.."
fi
echo "Finish.."