Commit ce94719 for stable-diffusion.cpp

commit ce94719254aee4da0dd1162a3de3d083b1016e7f
Author: icedwater <icedwater@gmail.com>
Date:   Sat Nov 14 02:30:03 2026 +0800

    docs: update hipblas build step (#2110)

diff --git a/docs/build.md b/docs/build.md
index ad91a0a..8fc4380 100644
--- a/docs/build.md
+++ b/docs/build.md
@@ -162,12 +162,21 @@ takes precedence. Non-CUDA builds do not require CUTLASS.
 This provides GPU acceleration using AMD GPU. Make sure to have the ROCm toolkit installed.
 To build for another GPU architecture than installed in your system, set `$GFX_NAME` manually to the desired architecture (replace first command). This is also necessary if your GPU is not officially supported by ROCm, for example you have to set `$GFX_NAME` manually to `gfx1030` for consumer RDNA2 cards.

+You may need to set up some prerequisites from the [AMD ROCm site](https://rocm.docs.amd.com/en/latest/install/rocm.html) based on your GPU and OS type. Once the repository has been registered, you can proceed with the steps below.
+
 Windows User Refer to [docs/hipBLAS_on_Windows.md](docs%2FhipBLAS_on_Windows.md) for a comprehensive guide.

 ```shell
 mkdir build && cd build
+export ROCM_VERSION=10.1
 if command -v rocminfo; then export GFX_NAME=$(rocminfo | awk '/ *Name: +gfx[1-9]/ {print $2; exit}'); else echo "rocminfo missing!"; fi
-if [ -z "${GFX_NAME}" ]; then echo "Error: Couldn't detect GPU!"; else echo "Building for GPU: ${GFX_NAME}"; fi
+sudo apt install amdrocm${ROCM_VERSION}-${GFX_NAME}
+if [ -z "${GFX_NAME}" ]; then
+  echo "Error: Couldn't detect GPU!"
+  exit 1
+fi
+sudo apt install "amdrocm${ROCM_VERSION}-${GFX_NAME}"
+echo "Building for GPU: ${GFX_NAME}"
 cmake .. -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DGPU_TARGETS=$GFX_NAME -DAMDGPU_TARGETS=$GFX_NAME -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 cmake --build . --config Release
 ```