Revision 827b4b87
Added by Adam Wilson about 12 years ago
climate/procedures/Pleiades.R | ||
---|---|---|
11 | 11 |
|
12 | 12 |
cat(paste(" |
13 | 13 |
#PBS -S /bin/bash |
14 |
##PBS -l select=1:ncpus=16:model=san
|
|
14 |
#PBS -l select=1:ncpus=16:model=san |
|
15 | 15 |
###PBS -l select=4:ncpus=8:model=neh |
16 |
#PBS -l select=1:ncpus=12:model=wes |
|
16 |
##PBS -l select=1:ncpus=12:model=wes
|
|
17 | 17 |
####### old: select=48:ncpus=8:mpiprocs=8:model=neh |
18 |
#PBS -l walltime=10:00:00
|
|
18 |
#PBS -l walltime=2:00:00
|
|
19 | 19 |
#PBS -j oe |
20 | 20 |
#PBS -m e |
21 | 21 |
#PBS -V |
22 | 22 |
####PBS -W group_list=s1007 |
23 |
###PBS -q devel
|
|
23 |
#PBS -q devel |
|
24 | 24 |
#PBS -o log/log_^array_index^ |
25 | 25 |
#PBS -o log/log_DataCompile |
26 | 26 |
#PBS -M adam.wilson@yale.edu |
27 | 27 |
#PBS -N MOD06 |
28 | 28 |
|
29 |
source /usr/share/modules/init/bash |
|
29 |
#source /usr/share/modules/init/bash
|
|
30 | 30 |
|
31 | 31 |
## cd to working directory |
32 | 32 |
cd /nobackupp1/awilso10/mod06 |
33 | 33 |
|
34 | 34 |
## set some memory limits |
35 | 35 |
# ulimit -d 1500000 -m 1500000 -v 1500000 #limit memory usage |
36 |
source /usr/local/lib/global.profile |
|
37 | 36 |
source /u/awilso10/.bashrc |
37 |
source /u/awilso10/moduleload |
|
38 |
source /usr/local/lib/global.profile |
|
38 | 39 |
## export a few important variables |
39 |
export NCORES=24 # use to limit mclapply() to set nubmer of cores, should be select*ncpus above |
|
40 |
export PATH=$PATH:/nobackupp1/awilso10/bin:/nobackupp1/awilso10/software/bin |
|
41 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nobackupp1/awilso10/software/lib |
|
40 |
export NCORES=16 # use to limit mclapply() to set nubmer of cores, should be select*ncpus above |
|
42 | 41 |
export R_LIBS=\"/u/awilso10/R/x86_64-unknown-linux-gnu-library/2.15/\" |
43 |
export TMPDIR=/nobackupp1/awilso10/mod06/tmp |
|
44 |
## HEG related variables |
|
45 |
export MRTDATADIR=/nobackupp1/awilso10/software/heg/data |
|
46 |
export PGSHOME=/nobackupp1/awilso10/software/heg/TOOLKIT_MTD |
|
47 |
export HEGUSER=ME |
|
48 | 42 |
## load modules |
49 |
module load gcc mpi-sgi/mpt.2.06r6 hdf4 udunits R nco
|
|
43 |
module load gcc hdf4 udunits R nco mpi-intel #mpi-sgi/mpt.2.06r6
|
|
50 | 44 |
## Run the script! |
51 | 45 |
## current version not parallelizing across nodes! |
52 | 46 |
TMPDIR=$TMPDIR Rscript --verbose --vanilla /u/awilso10/environmental-layers/climate/procedures/MOD06_L2_process.r |
53 | 47 |
exit 0 |
54 | 48 |
exit 0 |
49 |
|
|
55 | 50 |
",sep=""),file="MOD06_process") |
56 | 51 |
|
57 | 52 |
### Check the file |
... | ... | |
62 | 57 |
system("/u/scicon/tools/bin/node_stats.sh") |
63 | 58 |
|
64 | 59 |
## Submit it (and keep the pid)! |
65 |
pid=system("qsub MOD06_process",intern=T); pid; pid=strsplit(pid,split="[.]")[[1]][1] |
|
66 |
|
|
67 |
#system("qsub MOD06_process") |
|
60 |
system("qsub MOD06_process") |
|
68 | 61 |
|
69 | 62 |
## work in interactive mode |
70 |
# system("qsub -I -l walltime=1:00:00 -lselect=2:ncpus=16:model=san -q devel") |
|
63 |
# system("qsub -I -l walltime=2:00:00 -lselect=2:ncpus=16:model=san -q devel") |
|
64 |
# mpirun -np 1 -r ssh R --no-save |
|
71 | 65 |
|
72 | 66 |
## check progress |
73 | 67 |
system("qstat -u awilso10") |
Also available in: Unified diff
MOD06_L2 now running properly but Rmpi is not running due to (probably) incompatability between Rmpi and the version of sgi-mpi available on Pleiades