source:
trunk/anuga_work/anuga_cuda/src/scripts/mygprof
@
9334
Last change on this file since 9334 was 9017, checked in by , 11 years ago | |
---|---|
|
|
File size: 311 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | if [ $# != 1 ] ; then |
4 | echo "Usage: gprof.sh gravity.py" |
5 | else |
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 |
16 | fi |
Note: See TracBrowser
for help on using the repository browser.