Files
rocm-systems/bin/hipconvertinplace.sh
T

19 lines
700 B
Bash
Raw Normal View History

2016-01-26 20:14:33 -06:00
#!/bin/bash
#usage : hipconvertinplace.sh [DIRNAME] [HIPIFY_OPTIONS]
#hipify "inplace" all code files in specified directory.
# This can be quite handy when dealing with an existing CUDA code base since the script
2016-01-28 20:16:43 -06:00
# preserves the existing directory structure.
2016-01-26 20:14:33 -06:00
# For each code file, this script will:
2016-01-28 20:16:43 -06:00
# - If ".prehip file does not exist, copy the original code to a new file with extension ".prehip". Then Hipify the code file.
2016-01-26 20:14:33 -06:00
# - If ".prehip" file exists, this is used as input to hipify.
# (this is useful for testing improvements to the hipify toolset).
SCRIPT_DIR=`dirname $0`
SEARCH_DIR=$1
shift
$SCRIPT_DIR/hipify -inplace -print-stats "$@" `$SCRIPT_DIR/findcode.sh $SEARCH_DIR`