Home / High-Performance Computing (HPC)
HIP (TODO abbreviation) is AMD ROCm’s runtime API and kernel language, which is compilable for both AMD (through ROCm) and NVIDIA (through CUDA) GPUs. Compared to OpenCL (which is also supported by both NVIDIA and AMD), it’s much more similar to CUDA (making it very easy to port CUDA code) and allows using existing profiling tools and similar for CUDA and ROCm.
Updated for ROCm 5.0.
sudo apt install curl libnuma-dev wget gnupg2
curl -sSf https://repo.radeon.com/rocm/rocm.gpg.key | sudo gpg --dearmor --output /usr/share/keyrings/rocm.gpg
echo 'deb [signed-by=/usr/share/keyrings/rocm.gpg arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' | sudo tee /etc/apt/sources.list.d/rocm.list
sudo apt update
sudo apt install hip-dev hip-doc hip-runtime-nvidia
echo 'export PATH=$PATH:/opt/rocm/bin' | sudo tee /etc/profile.d/rocm.sh
(relog to reload)hipconfig --full
git clone https://github.com/ROCm-Developer-Tools/HIP
cd HIP/samples/0_Intro/square
make
./square.out
hipconfig --full
amd
or nvidia
): hipconfig --platform
hipify-perl input.cu > output.cpp