From f76bb8954b814e98c1e3a2ef7a23118a067d4b64 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 6 Feb 2024 19:42:52 +0100 Subject: [PATCH] fix(Dockerfile): sycl dependencies (#1686) * fix(Dockerfile): sycl dependencies Signed-off-by: Ettore Di Giacinto * fix(ci): cleanup before running bark test --------- Signed-off-by: Ettore Di Giacinto --- .github/workflows/test-extra.yml | 40 ++++++++++++++++++++++++++++++++ Dockerfile | 5 +++- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-extra.yml b/.github/workflows/test-extra.yml index 172be096..faa480b8 100644 --- a/.github/workflows/test-extra.yml +++ b/.github/workflows/test-extra.yml @@ -171,6 +171,46 @@ jobs: uses: actions/checkout@v4 with: submodules: true + - name: Release space from worker + run: | + echo "Listing top largest packages" + pkgs=$(dpkg-query -Wf '${Installed-Size}\t${Package}\t${Status}\n' | awk '$NF == "installed"{print $1 "\t" $2}' | sort -nr) + head -n 30 <<< "${pkgs}" + echo + df -h + echo + sudo apt-get remove -y '^llvm-.*|^libllvm.*' || true + sudo apt-get remove --auto-remove android-sdk-platform-tools || true + sudo apt-get purge --auto-remove android-sdk-platform-tools || true + sudo rm -rf /usr/local/lib/android + sudo apt-get remove -y '^dotnet-.*|^aspnetcore-.*' || true + sudo rm -rf /usr/share/dotnet + sudo apt-get remove -y '^mono-.*' || true + sudo apt-get remove -y '^ghc-.*' || true + sudo apt-get remove -y '.*jdk.*|.*jre.*' || true + sudo apt-get remove -y 'php.*' || true + sudo apt-get remove -y hhvm powershell firefox monodoc-manual msbuild || true + sudo apt-get remove -y '^google-.*' || true + sudo apt-get remove -y azure-cli || true + sudo apt-get remove -y '^mongo.*-.*|^postgresql-.*|^mysql-.*|^mssql-.*' || true + sudo apt-get remove -y '^gfortran-.*' || true + sudo apt-get remove -y microsoft-edge-stable || true + sudo apt-get remove -y firefox || true + sudo apt-get remove -y powershell || true + sudo apt-get remove -y r-base-core || true + sudo apt-get autoremove -y + sudo apt-get clean + echo + echo "Listing top largest packages" + pkgs=$(dpkg-query -Wf '${Installed-Size}\t${Package}\t${Status}\n' | awk '$NF == "installed"{print $1 "\t" $2}' | sort -nr) + head -n 30 <<< "${pkgs}" + echo + sudo rm -rfv build || true + sudo rm -rf /usr/share/dotnet || true + sudo rm -rf /opt/ghc || true + sudo rm -rf "/usr/local/share/boost" || true + sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true + df -h - name: Dependencies run: | sudo apt-get update diff --git a/Dockerfile b/Dockerfile index f81b5ee3..82cebf46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,10 @@ RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \ RUN if [ "${BUILD_TYPE}" = "sycl_f16" ] || [ "${BUILD_TYPE}" = "sycl_f32" ]; then \ wget -q https://registrationcenter-download.intel.com/akdlm/IRC_NAS/163da6e4-56eb-4948-aba3-debcec61c064/l_BaseKit_p_2024.0.1.46_offline.sh && \ sh ./l_BaseKit_p_2024.0.1.46_offline.sh -a -s --eula accept && \ - rm -rf l_BaseKit_p_2024.0.1.46_offline.sh \ + rm -rf l_BaseKit_p_2024.0.1.46_offline.sh && \ + wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null && \ + echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list && \ + apt-get update && apt-get install -y intel-oneapi-runtime-opencl && apt-get clean \ ; fi ENV PATH /usr/local/cuda/bin:${PATH}