May 2019
Intermediate to advanced
452 pages
12h 16m
English
ROCm offers a unique tool to easily convert CUDA code into HIP. The following are the steps to install hipify on a Terminal:
$ sudo apt install git cmake clang-6.0 libclang-6.0-dev libclang-perl libclanlib-dev libclang-dev zlib1g-dev $ git clone https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP HIP$ cd HIP/hipify-clang/$ mkdir build dist$ cd build$ cmake \ -DCMAKE_INSTALL_PREFIX=../dist \ -DCMAKE_BUILD_TYPE=Release \ ..
The output will look similar to this:
-- The C compiler identification is GNU 7.3.0-- The CXX compiler identification is GNU 7.3.0-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ...
Read now
Unlock full access