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 gnupg2curl -sSf https://repo.radeon.com/rocm/rocm.gpg.key | sudo gpg --dearmor --output /usr/share/keyrings/rocm.gpgecho '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.listsudo apt updatesudo apt install hip-dev hip-doc hip-runtime-nvidiaecho 'export PATH=$PATH:/opt/rocm/bin' | sudo tee /etc/profile.d/rocm.sh (relog to reload)hipconfig --fullgit clone https://github.com/ROCm-Developer-Tools/HIPcd HIP/samples/0_Intro/squaremake./square.outhipconfig --fullamd or nvidia): hipconfig --platformhipify-perl input.cu > output.cpp