Skip to content

Instantly share code, notes, and snippets.

@dipankardas011
Last active June 3, 2026 07:10
Show Gist options
  • Select an option

  • Save dipankardas011/8aec41f5c4da6750c76adcc2e9d3bc16 to your computer and use it in GitHub Desktop.

Select an option

Save dipankardas011/8aec41f5c4da6750c76adcc2e9d3bc16 to your computer and use it in GitHub Desktop.
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j20

cmake -B build -G Ninja -DGGML_HIP=ON -DAMDGPU_TARGETS=$(amdgpu-arch)
cmake --build build -j20 --config Release
@iamimmanuelraj
Copy link
Copy Markdown

Clean Build for CUDA LLAMA CPP

    rm -rf build
    cmake -B build -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release
    cmake --build build --config Release -j $(nproc)

Clean Build for Vulkan LLAMA CPP

    rm -rf build
    cmake -B build -DGGML_VULKAN=ON -DGGML_CUDA=OFF -DGGML_HIP=OFF -DCMAKE_BUILD_TYPE=Release
    cmake --build build --config Release -j $(nproc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment