The Rock 7.12 supports the latest 1150/1151 igpus at last, making it possible to run compute workloads like ocr on the GPU.
Even if you have a gfx1150 gpu you need to follow these instructions - the 1150 pipeline is fked up according to amd devs
You need a minimum of 8gb vram set in the bios and 32gb total ram...
Make sure you're running ubuntu 24.04 and update to the latest HWE kernel (6.17.0-14-generic):
sudo apt update
sudo apt dist-upgrade
You must create an env var in your .bashrc file:
export HSA_OVERRIDE_GFX_VERSION=11.5.1
You need to install these first:
sudo apt install wget python3 libatomic1
Then run:
sudo usermod -a -G render,video $LOGNAME
reboot
Still from your home dir:
mkdir therock-tarball && cd therock-tarball
wget https://therock-nightly-tarball.s3.amazonaws.com/therock-dist-linux-gfx1151-7.12.0a20260218.tar.gz
mkdir install
tar -xf *.tar.gz -C install
Run this whole paragraph as a copy/paste in your terminal if you can it's faster:
# Configure ROCm PATH. Make sure you're in the therock-tarball directory before proceeding. ROCM_INSTALL_PATH=$(pwd)/install sudo tee /etc/profile.d/set-rocm-env.sh << EOF export ROCM_PATH=$ROCM_INSTALL_PATH export PATH=\$PATH:\$ROCM_PATH/bin export LD_LIBRARY_PATH=\$ROCM_PATH/lib EOF sudo chmod +x /etc/profile.d/set-rocm-env.sh source /etc/profile.d/set-rocm-env.sh
If you run rocminfo after and amd-smi version it should work, and the ultimate test is to run test_hip_api - if it succeeds, ur good!
Add these to your docker compose .env file if issues arise while running the ML container:
MIGRAPHX_DISABLE_MLIR=1 MIGRAPHX_ENABLE_REPRODUCIBLE_COMPILE=1
Also, use the OCR server model, it actually uses the gpu correctly while the mobile models apparently produce image sizes that rocm/migraph/miopen has a hard time to understand.