Skip to content

Commit

Permalink
docs: add additional ROCm docs for building (ollama#9066)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca authored Feb 22, 2025
1 parent 68bac1e commit 7cfd4ae
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,21 @@ Install prerequisites:
- (Optional) NVIDIA GPU support
- [CUDA SDK](https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_network)

> [!IMPORTANT]
> Ensure prerequisites are in `PATH` before running CMake.
> [!IMPORTANT]
> ROCm is not compatible with Visual Studio CMake generators. Use `-GNinja` when configuring the project.
> [!IMPORTANT]
> CUDA is only compatible with Visual Studio CMake generators.
Then, configure and build the project:

```shell
cmake -B build
cmake --build build --config Release
```

> [!IMPORTANT]
> Building for ROCm requires additional flags:
> ```
> cmake -B build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
> cmake --build build --config Release
> ```
Lastly, run Ollama:
```shell
Expand Down

0 comments on commit 7cfd4ae

Please sign in to comment.