Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To convert a CUDA file (foo.cu , for example) to HIP format, enter the following after loading a ROCm module:

Column
width900px


Code Block
languagebash
themeDJango
titleTerminal N. Explaining the use the "hello_jobstep" code from an salloc session (list allocated GPUs)
$ module load rocm/<version>
$ hipify-perl foo.cu > new_foo.cpp



You can then compile the HIP ready . cpp file for the ROCm environment using the HIP/ Clang compiler provided in the ROCm installation:

...