...
Code Block |
---|
$ module load rocm/version
$ hipcc new_foo.cpp |
there are couple of utility script availed to support porting the codesĀ
Code Block |
---|
$ echo $(hipconfig --path)
$ findcode.sh hipcc hipconfig hipconvertinplace.sh hip_embed_pch.sh hipexamine.sh hipify-perl roc-obj-extract finduncodep.sh hipcc_cmake_linker_helper hipconvertinplace-perl.sh hipdemangleatp hipexamine-perl.sh hipify-cmakefile hipvars.pm roc-obj-ls |
for example:
Code Block |
---|
$ hipify perl inplace <filename>
It modifies the filename input inplace , replacing input with hipified output, save backup in . prehip file. |
Code Block |
---|
$hipexamine-perl.sh <filename/directory>
This script will scan a file/directory to determine which file/files contain CUDA code and how much of that code can be automatically hipified.
|
Code Block |
---|
$hipconvertinplace-perl.sh <directory>
It converts all the related files that are located inside the directory |