source: trunk/anuga_work/anuga_cuda/src/scripts/mygprof @ 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

  • Property svn:executable set to *
File size: 311 bytes
Line 
1#!/bin/bash
2
3if [ $# != 1 ] ; then
4    echo "Usage: gprof.sh gravity.py"
5else
6    file_name=$(basename $1)
7    echo $file_name
8    dir_name=$(dirname $1)
9    echo $dir_name
10
11    CUDA_PROFILE=1 python $1
12   
13    pro_name=$dir_name/profile_$file_name.log
14    mv cuda_profile_0.log $pro_name
15    cat $pro_name
16fi
Note: See TracBrowser for help on using the repository browser.