Skip to content

Commit dfc7cd4

Browse files
jammmcebtenzzre
andauthored
readme : update ROCm Windows instructions (#4122)
* Update README.md * Update README.md Co-authored-by: Jared Van Bortel <[email protected]> --------- Co-authored-by: Jared Van Bortel <[email protected]>
1 parent 881800d commit dfc7cd4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -410,19 +410,27 @@ Building the program with BLAS support may lead to some performance improvements
410410
This provides BLAS acceleration on HIP-supported AMD GPUs.
411411
Make sure to have ROCm installed.
412412
You can download it from your Linux distro's package manager or from here: [ROCm Quick Start (Linux)](https://rocm.docs.amd.com/en/latest/deploy/linux/quick_start.html).
413-
Windows support is coming soon...
414413
415414
- Using `make`:
416415
```bash
417416
make LLAMA_HIPBLAS=1
418417
```
419-
- Using `CMake`:
418+
- Using `CMake` for Linux:
420419
```bash
421420
mkdir build
422421
cd build
423422
CC=/opt/rocm/llvm/bin/clang CXX=/opt/rocm/llvm/bin/clang++ cmake .. -DLLAMA_HIPBLAS=ON
424423
cmake --build .
425424
```
425+
- Using `CMake` for Windows:
426+
```bash
427+
mkdir build
428+
cd build
429+
cmake -G Ninja -DAMDGPU_TARGETS=gfx1100 -DLLAMA_HIPBLAS=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
430+
cmake --build .
431+
```
432+
Make sure that `AMDGPU_TARGETS` is set to the GPU arch you want to compile for. The above example uses `gfx1100` that corresponds to Radeon RX 7900XTX/XT/GRE. You can find a list of targets [here](https://llvm.org/docs/AMDGPUUsage.html#processors)
433+
426434
427435
The environment variable [`HIP_VISIBLE_DEVICES`](https://rocm.docs.amd.com/en/latest/understand/gpu_isolation.html#hip-visible-devices) can be used to specify which GPU(s) will be used.
428436
If your GPU is not officially supported you can use the environment variable [`HSA_OVERRIDE_GFX_VERSION`] set to a similar GPU, for example 10.3.0 on RDNA2 or 11.0.0 on RDNA3.

0 commit comments

Comments
 (0)