Felipe97/llama-cpp-compiled
01.2k
1name: "Windows - Setup ROCm"2description: "Setup ROCm for Windows"3inputs:4 version:5 description: "ROCm version"6 required: true7 8runs:9 using: "composite"10 steps:11 - name: Install ROCm with Wheels12 shell: pwsh13 run: |14 $ErrorActionPreference = "Stop"15 write-host "Setting up Python virtual environment"16 17 # Create the venv directly at the cache location to avoid relocation issues18 New-Item -Path "C:\TheRock\build" -ItemType Directory -Force | Out-Null19 python -m venv C:\TheRock\build\.venv20 & C:\TheRock\build\.venv\Scripts\Activate.ps121 22 write-host "Upgrading pip"23 python -m pip install --upgrade pip24 25 write-host "Installing ROCm wheels for multi-arch support"26 # Install ROCm wheels for multi-arch support (this may take several minutes)27 python -m pip install --index-url https://stable.repo.amd.com/rocm/whl-next/ "rocm[libraries,devel]==${{ inputs.version }}"28 29 # Pre-expand the devel tree so it is included in the cache30 write-host "Initializing ROCm devel tree"31 rocm-sdk init32 if ($LASTEXITCODE -ne 0) { throw "rocm-sdk init failed with exit code $LASTEXITCODE" }33 write-host "Completed ROCm wheel installation to C:\TheRock\build"34 