Line | |
---|
1 | #!/bin/bash |
---|
2 | #PBS -P v29 |
---|
3 | #PBS -j oe |
---|
4 | ##PBS -l ngpus=2 |
---|
5 | ##PBS -l ncpus=1 |
---|
6 | #PBS -l walltime=00:20:00 |
---|
7 | #PBS -l vmem=1G |
---|
8 | #PBS -l other=physmem |
---|
9 | #PBS -wd |
---|
10 | |
---|
11 | echo $cmdXe |
---|
12 | echo $PBS_JOBID |
---|
13 | echo $profile |
---|
14 | |
---|
15 | outfile=`echo $cmdXe | tr ' ' '_' | tr -d ' /;<>&#()'` |
---|
16 | jobid=`echo $PBS_JOBID | awk -F. '{print $1}'` |
---|
17 | outfile=outputXe.$outfile.$jobid |
---|
18 | |
---|
19 | if [ "$profile" = true ] ; then |
---|
20 | export COMPUTE_PROFILE=1 |
---|
21 | export COMPUTE_PROFILE_CSV=1 |
---|
22 | compute_profile=cvp_output_0 |
---|
23 | export COMPUTE_PROFILE_LOG="$compute_profile.csv" |
---|
24 | export COMPUTE_PROFILE_CONFIG=".cp_config" |
---|
25 | fi |
---|
26 | |
---|
27 | module load nvidia |
---|
28 | module load python/2.7.3 |
---|
29 | module load cuda/4.2.9 |
---|
30 | module load gcc/4.4.4 |
---|
31 | module load boost/1.46.1 |
---|
32 | module load netcdf/4.2.1.1 |
---|
33 | |
---|
34 | $cmdXe > $outfile 2>&1 |
---|
35 | |
---|
36 | if [ "$profile" = true ] ; then |
---|
37 | cvp_output < $COMPUTE_PROFILE_LOG > $compute_profile.log |
---|
38 | cvp_summarize < $COMPUTE_PROFILE_LOG > $compute_profile.summ |
---|
39 | echo "CVP full output is in $compute_profile.log, summary in $compute_profile.summ" |
---|
40 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.