hipify-perl is an autogenerated perl-based script which heavily uses regular expressions.
Ease of use.
It doesn’t check the input source CUDA code for correctness.
It doesn’t have dependencies on 3rd party tools, including CUDA.
Current disability (and difficulty in implementing) of transforming the following constructs:
redefines of CUDA entities in user namespaces;
templates (some cases);
device/host function calls distinguishing;
header files correct injection;
complicated argument lists parsing.
Difficulties in supporting.
perl hipify-perl square.cu > square.cu.hip
hipify-clang --perl. The output directory for the generated
hipify-perl file might be specified by