mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-08-29 00:21:21 +02:00
0666ad2b2b
* Switch ROCm from 7.2.1 to 7.14 ROCm 7.14 is the first production release using TheRock build system. It can be installed using multi-arch deliverables from wheels, debs, rpms, tarballs or runfiles. Adjust ROCm targets for Linux and Windows to use this instead. * ci: switch all other Windows ROCm jobs to ROCm 7.14 wheels Move the shared windows-setup-rocm composite action from the HIP SDK PRO Edition installer to the multi-arch ROCm wheels (rocm[libraries,devel]). The wheel-install logic that previously lived inline in release.yml is now in the shared action, and both build-cache.yml and release.yml call it. Also migrate the build-cuda-windows.yml hip job to the same wheel-based layout (cache path/key, rocm-sdk environment setup, llvm/bin compiler paths) so it keeps working after the action's contract changed; drop its now-unused ROCm 7.2.1 rocWMMA download and stale include path.
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
name: "Windows - Setup ROCm"
|
|
description: "Setup ROCm for Windows"
|
|
inputs:
|
|
version:
|
|
description: "ROCm version"
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install ROCm with Wheels
|
|
shell: pwsh
|
|
run: |
|
|
$ErrorActionPreference = "Stop"
|
|
write-host "Setting up Python virtual environment"
|
|
|
|
# Create the venv directly at the cache location to avoid relocation issues
|
|
New-Item -Path "C:\TheRock\build" -ItemType Directory -Force | Out-Null
|
|
python -m venv C:\TheRock\build\.venv
|
|
& C:\TheRock\build\.venv\Scripts\Activate.ps1
|
|
|
|
write-host "Upgrading pip"
|
|
python -m pip install --upgrade pip
|
|
|
|
write-host "Installing ROCm wheels for multi-arch support"
|
|
# Install ROCm wheels for multi-arch support (this may take several minutes)
|
|
python -m pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ "rocm[libraries,devel]==${{ inputs.version }}"
|
|
|
|
# Pre-expand the devel tree so it is included in the cache
|
|
write-host "Initializing ROCm devel tree"
|
|
rocm-sdk init
|
|
if ($LASTEXITCODE -ne 0) { throw "rocm-sdk init failed with exit code $LASTEXITCODE" }
|
|
write-host "Completed ROCm wheel installation to C:\TheRock\build"
|