Skip to content

Commit 96fd1fe

Browse files
committed
ci: fix sycl smoke and hip install timeout
1 parent 92e9629 commit 96fd1fe

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.devops/intel.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ COPY --from=build /app/full/llama-server /app
149149

150150
WORKDIR /app
151151

152-
RUN /app/llama-server --version
152+
RUN test -s /app/libggml-sycl.so \
153+
&& ldd /app/libggml-sycl.so \
154+
&& mv /app/libggml-sycl.so /app/libggml-sycl.so.smoke-disabled \
155+
&& /app/llama-server --version \
156+
&& mv /app/libggml-sycl.so.smoke-disabled /app/libggml-sycl.so
153157

154158
HEALTHCHECK CMD [ "curl", "-f", "http://localhost:8080/health" ]
155159

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ jobs:
495495
- name: Smoke package binaries
496496
run: |
497497
source "${ONEAPI_ROOT}/setvars.sh"
498+
test -s ./build/bin/libggml-sycl.so
499+
ldd ./build/bin/libggml-sycl.so
500+
mv ./build/bin/libggml-sycl.so ./build/bin/libggml-sycl.so.smoke-disabled
501+
trap 'mv ./build/bin/libggml-sycl.so.smoke-disabled ./build/bin/libggml-sycl.so' EXIT
498502
./build/bin/llama-server --version
499503
./build/bin/llama-cli --version
500504
@@ -870,11 +874,12 @@ jobs:
870874
run: |
871875
$ErrorActionPreference = "Stop"
872876
Invoke-WebRequest -Uri "https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-${{ env.HIPSDK_INSTALLER_VERSION }}-Win11-For-HIP.exe" -OutFile "${env:RUNNER_TEMP}\rocm-install.exe"
873-
$proc = Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -PassThru
874-
$completed = $proc.WaitForExit(600000)
877+
$installTimeoutSeconds = 1800
878+
$proc = Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -WindowStyle Hidden -PassThru
879+
$completed = $proc.WaitForExit($installTimeoutSeconds * 1000)
875880
if (-not $completed) {
876881
$proc.Kill()
877-
Write-Error "ROCm installation timed out after 10 minutes"
882+
Write-Error "ROCm installation timed out after $($installTimeoutSeconds / 60) minutes"
878883
}
879884
if ($proc.ExitCode -ne 0) {
880885
Write-Error "ROCm installation failed with exit code $($proc.ExitCode)"

0 commit comments

Comments
 (0)