5656
5757jobs :
5858 macOS-latest-cmake-arm64 :
59- runs-on : macos-14
59+ runs-on : macos-latest
6060
6161 steps :
6262 - name : Clone
8888 -DGGML_METAL_SHADER_DEBUG=ON \
8989 -DGGML_RPC=ON
9090 cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
91+ leaks -atExit -- ./build/bin/test-thread-safety -hf ggml-org/gemma-3-270m-qat-GGUF -ngl 99 -p "$(printf 'hello %.0s' {1..128})" -n 16 -c 512 -ub 32 -np 2 -t 2 -lv 1
9192
9293 - name : Test
9394 id : cmake_test
9697 ctest -L 'main|curl' --verbose --timeout 900
9798
9899 macOS-latest-cmake-x64 :
99- runs-on : macos-13
100+ runs-on : macos-latest
100101
101102 steps :
102103 - name : Clone
@@ -126,7 +127,8 @@ jobs:
126127 -DCMAKE_BUILD_RPATH="@loader_path" \
127128 -DLLAMA_FATAL_WARNINGS=ON \
128129 -DGGML_METAL=OFF \
129- -DGGML_RPC=ON
130+ -DGGML_RPC=ON \
131+ -DCMAKE_OSX_DEPLOYMENT_TARGET=13.3
130132 cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
131133
132134 - name : Test
@@ -136,7 +138,7 @@ jobs:
136138 ctest -L main --verbose --timeout 900
137139
138140 macOS-latest-cmake-arm64-webgpu :
139- runs-on : macos-14
141+ runs-on : latest
140142
141143 steps :
142144 - name : Clone
@@ -1050,9 +1052,13 @@ jobs:
10501052 run : examples/sycl/win-build-sycl.bat
10511053
10521054 windows-latest-cmake-hip :
1053- if : ${{ github.event.inputs.create_release != 'true' }}
10541055 runs-on : windows-2022
10551056
1057+ env :
1058+ # The ROCm version must correspond to the version used in the HIP SDK.
1059+ ROCM_VERSION : " 6.4.2"
1060+ HIPSDK_INSTALLER_VERSION : " 25.Q3"
1061+
10561062 steps :
10571063 - name : Clone
10581064 id : checkout
@@ -1061,23 +1067,46 @@ jobs:
10611067 - name : Clone rocWMMA repository
10621068 id : clone_rocwmma
10631069 run : |
1064- git clone https://github.com/rocm/rocwmma --branch rocm-6.2.4 --depth 1
1070+ git clone https://github.com/rocm/rocwmma --branch rocm-${{ env.ROCM_VERSION }} --depth 1
10651071
1066- - name : Install
1072+ - name : Cache ROCm Installation
1073+ id : cache-rocm
1074+ uses : actions/cache@v4
1075+ with :
1076+ path : C:\Program Files\AMD\ROCm
1077+ key : rocm-${{ env.HIPSDK_INSTALLER_VERSION }}-${{ runner.os }}
1078+
1079+ - name : Install ROCm
1080+ if : steps.cache-rocm.outputs.cache-hit != 'true'
10671081 id : depends
10681082 run : |
10691083 $ErrorActionPreference = "Stop"
10701084 write-host "Downloading AMD HIP SDK Installer"
1071- 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"
1085+ 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"
10721086 write-host "Installing AMD HIP SDK"
10731087 $proc = Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -PassThru
1074- $proc.WaitForExit(600000)
1088+ $completed = $proc.WaitForExit(600000)
1089+ if (-not $completed) {
1090+ Write-Error "ROCm installation timed out after 10 minutes. Killing the process"
1091+ $proc.Kill()
1092+ exit 1
1093+ }
1094+ if ($proc.ExitCode -ne 0) {
1095+ Write-Error "ROCm installation failed with exit code $($proc.ExitCode)"
1096+ exit 1
1097+ }
10751098 write-host "Completed AMD HIP SDK installation"
10761099
10771100 - name : Verify ROCm
10781101 id : verify
10791102 run : |
1080- & 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version
1103+ # Find and test ROCm installation
1104+ $clangPath = Get-ChildItem 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | Select-Object -First 1
1105+ if (-not $clangPath) {
1106+ Write-Error "ROCm installation not found"
1107+ exit 1
1108+ }
1109+ & $clangPath.FullName --version
10811110
10821111 - name : Install ccache
10831112@@ -1142,7 +1171,9 @@ jobs:
11421171 ./build-xcframework.sh
11431172
11441173 - name : Build Xcode project
1145- run : xcodebuild -project examples/llama.swiftui/llama.swiftui.xcodeproj -scheme llama.swiftui -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' FRAMEWORK_FOLDER_PATH=./build-ios build
1174+ run : |
1175+ xcodebuild -downloadPlatform iOS
1176+ xcodebuild -project examples/llama.swiftui/llama.swiftui.xcodeproj -scheme llama.swiftui -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' FRAMEWORK_FOLDER_PATH=./build-ios build
11461177
11471178 android-build :
11481179 runs-on : ubuntu-latest
0 commit comments