mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
docs: add additional ROCm docs for building (#9066)
This commit is contained in:
parent
68bac1e0a6
commit
7cfd4aee4d
1 changed files with 8 additions and 9 deletions
|
@ -46,15 +46,6 @@ Install prerequisites:
|
||||||
- (Optional) NVIDIA GPU support
|
- (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)
|
- [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:
|
Then, configure and build the project:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
@ -62,6 +53,14 @@ cmake -B build
|
||||||
cmake --build build --config Release
|
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:
|
Lastly, run Ollama:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue