2017-03-29 16:36:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2017-06-02 16:33:48 +03:00
|
|
|
#usage : hipexamine-perl.sh DIRNAME [hipify-perl options]
|
2017-03-29 16:36:46 +03:00
|
|
|
|
2017-06-02 16:30:43 +03:00
|
|
|
# Generate HIP stats (LOC, CUDA->API conversions, missing functionality) for all the code files
|
2017-03-29 16:36:46 +03:00
|
|
|
# in the specified directory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SCRIPT_DIR=`dirname $0`
|
|
|
|
|
SEARCH_DIR=$1
|
|
|
|
|
shift
|
2017-06-02 16:30:43 +03:00
|
|
|
$SCRIPT_DIR/hipify-perl -no-output -print-stats "$@" `$SCRIPT_DIR/findcode.sh $SEARCH_DIR`
|