From ef444588e13bf394e69229166c9ebdef351f594e Mon Sep 17 00:00:00 2001 From: emankov Date: Fri, 2 Jun 2017 16:30:43 +0300 Subject: [PATCH] [HIPIFY] rename legacy hipify perl script and its usage to hipify-perl [ROCm/clr commit: e7779650e9353e3f25cad9d1881c9b63504fbbd2] --- projects/clr/hipamd/bin/hipconvertinplace-perl.sh | 10 +++++----- projects/clr/hipamd/bin/hipexamine-perl.sh | 6 +++--- projects/clr/hipamd/bin/{hipify => hipify-perl} | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) rename projects/clr/hipamd/bin/{hipify => hipify-perl} (99%) diff --git a/projects/clr/hipamd/bin/hipconvertinplace-perl.sh b/projects/clr/hipamd/bin/hipconvertinplace-perl.sh index a8c8d6d9e8..d500cc14c6 100755 --- a/projects/clr/hipamd/bin/hipconvertinplace-perl.sh +++ b/projects/clr/hipamd/bin/hipconvertinplace-perl.sh @@ -1,18 +1,18 @@ #!/bin/bash -#usage : hipconvertinplace.sh [DIRNAME] [HIPIFY_OPTIONS] +#usage : hipconvertinplace-perl.sh DIRNAME [hipify-perl options] -#hipify "inplace" all code files in specified directory. +#hipify "inplace" all code files in specified directory. # This can be quite handy when dealing with an existing CUDA code base since the script # preserves the existing directory structure. # For each code file, this script will: -# - If ".prehip file does not exist, copy the original code to a new file with extension ".prehip". Then Hipify the code file. +# - If ".prehip file does not exist, copy the original code to a new file with extension ".prehip". Then hipify the code file. # - If ".prehip" file exists, this is used as input to hipify. -# (this is useful for testing improvements to the hipify toolset). +# (this is useful for testing improvements to the hipify-perl toolset). SCRIPT_DIR=`dirname $0` SEARCH_DIR=$1 shift -$SCRIPT_DIR/hipify -inplace -print-stats "$@" `$SCRIPT_DIR/findcode.sh $SEARCH_DIR` +$SCRIPT_DIR/hipify-perl -inplace -print-stats "$@" `$SCRIPT_DIR/findcode.sh $SEARCH_DIR` diff --git a/projects/clr/hipamd/bin/hipexamine-perl.sh b/projects/clr/hipamd/bin/hipexamine-perl.sh index 40c1bf466d..9e0b01df44 100755 --- a/projects/clr/hipamd/bin/hipexamine-perl.sh +++ b/projects/clr/hipamd/bin/hipexamine-perl.sh @@ -1,12 +1,12 @@ #!/bin/bash -#usage : hipexamine.sh DIRNAME [hipify.pl options] +#usage : hipexamine.sh DIRNAME [hipify-perl options] -# Generate HIP stats (LOC, CUDA->API conversions, missing functionality) for all the code files +# Generate HIP stats (LOC, CUDA->API conversions, missing functionality) for all the code files # in the specified directory. SCRIPT_DIR=`dirname $0` SEARCH_DIR=$1 shift -$SCRIPT_DIR/hipify -no-output -print-stats "$@" `$SCRIPT_DIR/findcode.sh $SEARCH_DIR` +$SCRIPT_DIR/hipify-perl -no-output -print-stats "$@" `$SCRIPT_DIR/findcode.sh $SEARCH_DIR` diff --git a/projects/clr/hipamd/bin/hipify b/projects/clr/hipamd/bin/hipify-perl similarity index 99% rename from projects/clr/hipamd/bin/hipify rename to projects/clr/hipamd/bin/hipify-perl index 4d77fad3ed..27acc5bccc 100755 --- a/projects/clr/hipamd/bin/hipify +++ b/projects/clr/hipamd/bin/hipify-perl @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. ## -#usage hipify [OPTIONS] INPUT_FILE +#usage hipify-perl [OPTIONS] INPUT_FILE use Getopt::Long; my $warn_whitelist =""; @@ -201,7 +201,7 @@ while (@ARGV) { my %ft; clearStats(\%ft, \@statNames); my $countIncludes = 0; - my $countKeywords = 0; # keywords like __global__, __shared__ - not converted by hipify but counted here. + my $countKeywords = 0; # keywords like __global__, __shared__ - not converted by hipify-perl, but counted here. my $warnings = 0; my $warningsCublas = 0; my $warningsCurand = 0;