forked from telmin/lu2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmympirun2b.csh
47 lines (45 loc) · 1.35 KB
/
mympirun2b.csh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/csh -f
#
# mympirun.csh
#
# script to run openmpi or mvapich1 in mgv
#
#
# usage: mympirun2b.csh np name_of_hostfile command and options
#
# example
#
# mympirun2b.csh 4 hostfile45 lu2_mpi_gdr -p 4 -n 16384
#
# JM 2010/5/22
#
#set mpitype = openmpi133
set mpitype = mvapich1
set np = $1
set hostfile = $2
shift
shift
foreach host ( `cat $hostfile` )
echo $host
rsh $host 'rm /mnt/huge/a* ' </dev/null &
end
sleep 5
if ( $mpitype == openmpi133 ) then
/usr2/makino/PDS/openmpi133/bin/mpirun \
--mca btl openib,sm,self\
--mca mpi_leave_pinned 1 \
--mca btl_openib_ib_timeout 30 \
--mca btl_openib_use_srq 1 \
--mca btl_openib_flags 6 \
--mca btl_openib_srq_rd_max 100000 \
--mca pls_rsh_agent "/usr/bin/rsh" -hostfile $hostfile \
-np $np $*
# --mca btl_openib_max_rdma_size 16777216 \
endif
if ( $mpitype == mvapich1 ) then
/usr/mpi/gcc/mvapich-1.1.0/bin/mpirun_rsh -rsh -hostfile $hostfile -np $np VIADEV_USE_AFFINITY=0 $*
/usr/mpi/gcc/mvapich-1.1.0/bin/mpirun_rsh -rsh -hostfile $hostfile -np $np VIADEV_USE_AFFINITY=0 $*
/usr/mpi/gcc/mvapich-1.1.0/bin/mpirun_rsh -rsh -hostfile $hostfile -np $np VIADEV_USE_AFFINITY=0 $*
/usr/mpi/gcc/mvapich-1.1.0/bin/mpirun_rsh -rsh -hostfile $hostfile -np $np VIADEV_USE_AFFINITY=0 $*
/usr/mpi/gcc/mvapich-1.1.0/bin/mpirun_rsh -rsh -hostfile $hostfile -np $np VIADEV_USE_AFFINITY=0 $*
endif