1 |
edhill |
1.1 |
#!/bin/csh |
2 |
|
|
# invoking MPICH/MPICH-GM mpirun on ACES Linux clusters |
3 |
|
|
# |
4 |
|
|
|
5 |
|
|
#PBS -q four |
6 |
|
|
#PBS -N document |
7 |
|
|
#PBS -l nodes=4:ppn=2,walltime=00:10:00 |
8 |
|
|
#PBS -e myrunMPICH.stderr |
9 |
|
|
#PBS -o myrunMPICH.stdout |
10 |
|
|
#PBS -m ae |
11 |
|
|
#PBS -V |
12 |
|
|
|
13 |
|
|
if ( -f /etc/profile.d/modules.csh ) then |
14 |
|
|
source /etc/profile.d/modules.csh |
15 |
|
|
endif |
16 |
|
|
|
17 |
|
|
module add mpich/pgi |
18 |
|
|
|
19 |
|
|
|
20 |
|
|
set verbose |
21 |
|
|
cd /net/ds-01/scratch-3/helen/documentation/example_run_06 |
22 |
|
|
cat $PBS_NODEFILE | sort | uniq > mf |
23 |
|
|
set ncpus = ( `wc -l mf | awk '{print $1}'` ) |
24 |
|
|
# mpirun.ch_gm -machinefile mf -s -v --gm-kill 5 -np $ncpus ./mitgcmuv |
25 |
|
|
mpirun -machinefile mf -np $ncpus ./mitgcmuv |