Skip to content

Commit 26fc219

Browse files
Green-Skystduhpf
authored andcommitted
change the ci rocm hip install and user newer version
1 parent c87c26c commit 26fc219

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
defines: "-DGGML_NATIVE=OFF -DGGML_AVX512=ON -DGGML_AVX=ON -DGGML_AVX2=ON -DSD_BUILD_SHARED_LIBS=ON"
165165
- build: "cuda12"
166166
defines: "-DSD_CUDA=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_ARCHITECTURES=90;89;80;75"
167-
# - build: "rocm5.5"
167+
# - build: "rocm"
168168
# defines: '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS="gfx1100;gfx1102;gfx1030" -DSD_BUILD_SHARED_LIBS=ON'
169169
- build: "vulkan"
170170
defines: "-DSD_VULKAN=ON -DSD_BUILD_SHARED_LIBS=ON"
@@ -186,17 +186,30 @@ jobs:
186186

187187
- name: Install rocm-toolkit
188188
id: rocm-toolkit
189-
if: ${{ matrix.build == 'rocm5.5' }}
190-
uses: Cyberhan123/[email protected]
191-
with:
192-
rocm: "5.5.0"
189+
if: ${{ matrix.build == 'rocm' }}
190+
run: |
191+
$ErrorActionPreference = "Stop"
192+
write-host "Downloading AMD HIP SDK Installer"
193+
Invoke-WebRequest -Uri "https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-24.Q3-WinSvr2022-For-HIP.exe" -OutFile "${env:RUNNER_TEMP}\rocm-install.exe"
194+
write-host "Installing AMD HIP SDK"
195+
Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -Wait
196+
write-host "Completed AMD HIP SDK installation"
197+
Add-Content $env:HIP_PATH $(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path)
198+
Add-Content $env:GITHUB_PATH "${env:HIP_PATH}"
199+
200+
- name: Verify ROCm
201+
id: rocm-verify
202+
if: ${{ matrix.build == 'rocm' }}
203+
run: |
204+
& 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version
193205
194206
- name: Install Ninja
195207
id: install-ninja
196208
if: ${{ matrix.build == 'rocm5.5' }}
197209
uses: urkle/action-get-ninja@v1
198210
with:
199211
version: 1.11.1
212+
200213
- name: Install Vulkan SDK
201214
id: get_vulkan
202215
if: ${{ matrix.build == 'vulkan' }}

0 commit comments

Comments
 (0)