source: trunk/anuga_work/anuga_cuda/src/scripts/subXecuda @ 9334

Last change on this file since 9334 was 9017, checked in by steve, 11 years ago

Adding in Zhe (John) Weng's anuga_cuda code as obtained from googlecode https://code.google.com/p/anuga-cuda

File size: 947 bytes
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
11echo $cmdXe
12echo $PBS_JOBID
13echo $profile
14
15outfile=`echo $cmdXe | tr ' ' '_' | tr -d ' /;<>&#()'`
16jobid=`echo $PBS_JOBID | awk -F. '{print $1}'`
17outfile=outputXe.$outfile.$jobid
18
19if [ "$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"
25fi
26
27module load nvidia
28module load python/2.7.3
29module load cuda/4.2.9
30module load gcc/4.4.4
31module load boost/1.46.1
32module load netcdf/4.2.1.1
33
34$cmdXe > $outfile 2>&1
35
36if [ "$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" 
40fi
Note: See TracBrowser for help on using the repository browser.