sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install linux-modules-extra-aws
wget https://repo.radeon.com/amdgpu-install/5.4.3/ubuntu/jammy/amdgpu-install_5.4.50403-1_all.deb
sudo apt-get -y install ./amdgpu-install_5.4.50403-1_all.deb
sudo amdgpu-install --usecase=rocmdev
sudo usermod -a -G video,render ubuntu
sudo reboot
You can verify that this installation has been successful by running rocminfo and checking that gfx1011 is listed as one of the agents.
apt-get install -y cmake build-essential g++-12
CXX=/opt/rocm/bin/hipcc cmake -S. -Bbuild -DAMDGPU_TARGETS=gfx1011 -DCMAKE_PREFIX_PATH=/opt/rocm
make -C build
./build/example
Note that AMD does not build the ROCm math libraries for gfx1011 when preparing their official packages, so if you want to use a library like rocSPARSE (whether directly in C++ or indirectly through a framework like PyTorch), you will have to build it from source yourself. The Spack package manager supports building for specific amdgpu architectures and is a useful tool for this purpose.
I have not tried the latest versions. I would expect it probably works, but I don't know for sure.
I will note that the packages for the ROCm math libraries in Ubuntu 24.04 'universe' and Debian 13 'main' repositories will run on gfx1011 without having to be rebuilt (as shown in Debian's Supported GPU List). Unfortunately, the packages are a bit old. They are mostly based on ROCm 5.5 or 5.7.
On AWS, even when using Ubuntu 24.04 or Debian 13 packages, you will need to install the amdgpu-dkms driver. This seems to be because the AWS built their images with the amdkfd driver disabled. Anyway, once you have the driver installed, you can just
apt install librocblas-dev libhipblas-devrather than building the libraries from source. I ran the test suites for all the distro-provided ROCm packages on an XFX BC-160 and the results seem fine.