mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 22:33:56 +00:00
Add Vulkan GPU support instructions in development.md (#13265)
Added Vulkan SDK installation instructions and environment variable setup for building with Vulkan support.
This commit is contained in:
@@ -49,6 +49,8 @@ Install prerequisites:
|
|||||||
- [Ninja](https://github.com/ninja-build/ninja/releases)
|
- [Ninja](https://github.com/ninja-build/ninja/releases)
|
||||||
- (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)
|
||||||
|
- (Optional) VULKAN GPU support
|
||||||
|
- [VULKAN SDK](https://vulkan.lunarg.com/sdk/home) - useful for AMD/Intel GPUs
|
||||||
|
|
||||||
Then, configure and build the project:
|
Then, configure and build the project:
|
||||||
|
|
||||||
@@ -57,6 +59,17 @@ cmake -B build
|
|||||||
cmake --build build --config Release
|
cmake --build build --config Release
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Building for Vulkan requires VULKAN_SDK environment variable:
|
||||||
|
>
|
||||||
|
> PowerShell
|
||||||
|
> ```powershell
|
||||||
|
> $env:VULKAN_SDK="C:\VulkanSDK\<version>"
|
||||||
|
> ```
|
||||||
|
> CMD
|
||||||
|
> ```cmd
|
||||||
|
> set VULKAN_SDK=C:\VulkanSDK\<version>
|
||||||
|
> ```
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> Building for ROCm requires additional flags:
|
> Building for ROCm requires additional flags:
|
||||||
> ```
|
> ```
|
||||||
@@ -65,6 +78,7 @@ cmake --build build --config Release
|
|||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Lastly, run Ollama:
|
Lastly, run Ollama:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@@ -84,7 +98,9 @@ Install prerequisites:
|
|||||||
- [ROCm](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html)
|
- [ROCm](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html)
|
||||||
- (Optional) NVIDIA GPU support
|
- (Optional) NVIDIA GPU support
|
||||||
- [CUDA SDK](https://developer.nvidia.com/cuda-downloads)
|
- [CUDA SDK](https://developer.nvidia.com/cuda-downloads)
|
||||||
|
- (Optional) VULKAN GPU support
|
||||||
|
- [VULKAN SDK](https://vulkan.lunarg.com/sdk/home) - useful for AMD/Intel GPUs
|
||||||
|
- Or install via package manager: `sudo apt install vulkan-sdk` (Ubuntu/Debian) or `sudo dnf install vulkan-sdk` (Fedora/CentOS)
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> Ensure prerequisites are in `PATH` before running CMake.
|
> Ensure prerequisites are in `PATH` before running CMake.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user