@@ -413,20 +413,19 @@ jobs:
413
413
run : |
414
414
echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV"
415
415
416
- - name : Cache Vulkan SDK
417
- id : cache_vulkan_sdk
416
+ - name : Use Vulkan SDK Cache
418
417
uses : actions/cache@v4
418
+ id : cache-sdk
419
419
with :
420
420
path : ./vulkan_sdk
421
421
key : vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }}
422
422
423
- - name : Install Vulkan SDK
424
- if : steps.cache_vulkan_sdk.outputs.cache-hit != 'true'
425
- id : vulkan_sdk_install
426
- run : |
427
- mkdir -p vulkan_sdk
428
- cd vulkan_sdk
429
- curl --no-progress-meter https://sdk.lunarg.com/sdk/download/latest/linux/vulkan_sdk.tar.xz | tar -Jx --strip-components=1
423
+ - name : Setup Vulkan SDK
424
+ if : steps.cache-sdk.outputs.cache-hit != 'true'
425
+ uses : ./.github/actions/linux-setup-vulkan
426
+ with :
427
+ path : ./vulkan_sdk
428
+ version : ${{ env.VULKAN_SDK_VERSION }}
430
429
431
430
- name : Build
432
431
id : cmake_build
@@ -1111,6 +1110,7 @@ jobs:
1111
1110
env :
1112
1111
# The ROCm version must correspond to the version used in the HIP SDK.
1113
1112
ROCM_VERSION : " 6.4.2"
1113
+ # Make sure this is in sync with build-cache.yml
1114
1114
HIPSDK_INSTALLER_VERSION : " 25.Q3"
1115
1115
1116
1116
steps :
@@ -1125,33 +1125,18 @@ jobs:
1125
1125
7z x rocwmma.deb
1126
1126
7z x data.tar
1127
1127
1128
- - name : Cache ROCm Installation
1129
- id : cache-rocm
1128
+ - name : Use ROCm Installation Cache
1130
1129
uses : actions/cache@v4
1130
+ id : cache-rocm
1131
1131
with :
1132
1132
path : C:\Program Files\AMD\ROCm
1133
1133
key : rocm-${{ env.HIPSDK_INSTALLER_VERSION }}-${{ runner.os }}
1134
1134
1135
- - name : Install ROCm
1135
+ - name : Setup ROCm
1136
1136
if : steps.cache-rocm.outputs.cache-hit != 'true'
1137
- id : depends
1138
- run : |
1139
- $ErrorActionPreference = "Stop"
1140
- write-host "Downloading AMD HIP SDK Installer"
1141
- Invoke-WebRequest -Uri "https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-${{ env.HIPSDK_INSTALLER_VERSION }}-WinSvr2022-For-HIP.exe" -OutFile "${env:RUNNER_TEMP}\rocm-install.exe"
1142
- write-host "Installing AMD HIP SDK"
1143
- $proc = Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -PassThru
1144
- $completed = $proc.WaitForExit(600000)
1145
- if (-not $completed) {
1146
- Write-Error "ROCm installation timed out after 10 minutes. Killing the process"
1147
- $proc.Kill()
1148
- exit 1
1149
- }
1150
- if ($proc.ExitCode -ne 0) {
1151
- Write-Error "ROCm installation failed with exit code $($proc.ExitCode)"
1152
- exit 1
1153
- }
1154
- write-host "Completed AMD HIP SDK installation"
1137
+ uses : ./.github/actions/windows-setup-rocm
1138
+ with :
1139
+ version : ${{ env.HIPSDK_INSTALLER_VERSION }}
1155
1140
1156
1141
- name : Verify ROCm
1157
1142
id : verify
0 commit comments