...
There are several other utility scripts and options available to support the porting of codes that you can find in the rocm installation. These include:
...
hipify-clang
hipify-perl
hipexamine.sh
hipexamine-perl.sh
hipconvertinplace.sh
hipconvertinplace-perl.sh
For example, hipify-perl -inplace
option saves the HIP version of the code in the same file. The original CUDA code is saved in the backup file .prehip:
Column | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
| |||||||||
Code Block | |||||||||
Or hipexamine-perl.sh
...
scans a file/directory
...
to
...
determine
...
which
...
file/files
...
contain
...
CUDA
...
code
...
and
...
how
...
much
...
of
...
that
...
code
...
can
...
be
...
automatically
...
hipified.
...
Code Block |
---|
$ hipconvertinplacehipexamine-perl.sh <directory> It converts all the related files that are located inside the directory<filename/directory> |
Or hipconvertinplace-perl.sh
converts all the related files that are located inside the directory
Code Block |
---|
$ hipconvertinplace-perl.sh <directory>
|
for more information see HIP /hip_ programming _ guide.md at develop · ROCm-Developer-Tools/HIP · GitHub, HIP/hip_porting_guide.md at develop · ROCm-Developer-Tools/HIP · GitHub, HIPIFY/README.md at master · ROCm-Developer-Tools/HIPIFY · GitHub