Files
rocm-systems/bin/hipexamine.sh
T

23 lines
485 B
Bash
Raw Normal View History

2016-01-26 20:14:33 -06:00
#!/bin/bash
#usage : hipexamine.sh DIRNAME [hipify options] [--] [clang options]
2016-01-26 20:14:33 -06:00
2017-03-29 16:36:46 +03:00
# Generate CUDA->HIP conversion statistics for all the code files in the specified directory.
2016-01-26 20:14:33 -06:00
SCRIPT_DIR=`dirname $0`
SEARCH_DIR=$1
2017-03-29 16:36:46 +03:00
hipify_args=''
while (( "$#" )); do
shift
if [ "$1" != "--" ]; then
hipify_args="$hipify_args $1"
else
shift
break
fi
done
clang_args="$@"
$SCRIPT_DIR/hipify-clang -examine $hipify_args `$SCRIPT_DIR/findcode.sh $SEARCH_DIR` -- -x cuda $clang_args