From 4e106a64dfd554e419793f0c935bde9d51994db8 Mon Sep 17 00:00:00 2001 From: John Ingve Olsen Date: Mon, 20 Nov 2023 09:00:36 +0100 Subject: [PATCH] CI: install 2024 versions of Intel OCL libraries The intel oneAPI repository was recently updated, which broke our install scripts: ``` The following packages have unmet dependencies: intel-oneapi-runtime-compilers : Depends: intel-oneapi-runtime-openmp (= 2023.2.2-47) but 2024.0.0-49819 is to be installed ``` Looking at Intel's installation guide: https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2024-0/apt.html Intel recommends installing a metapackage `intel-oneapi-runtime-libs`. This package now depends on `intel-oneapi-runtime-opencl-2024` and `intel-oneapi-runtime-compilers-2024`, so it seems like we should use these packages now. Additionally, one of the packages is not declaring a dependency on `libxml2`, but does not work without it, so we have to install that manually as well. MISC --- continuous-integration/linux/platform-dependent/common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/continuous-integration/linux/platform-dependent/common.sh b/continuous-integration/linux/platform-dependent/common.sh index a38c8be9..e19e5483 100644 --- a/continuous-integration/linux/platform-dependent/common.sh +++ b/continuous-integration/linux/platform-dependent/common.sh @@ -13,7 +13,8 @@ function ubuntu_install_opencl_cpu_runtime { apt update || exit $? # Install the OpenCL runtime - apt --assume-yes install intel-oneapi-runtime-opencl intel-oneapi-runtime-compilers || exit $? + # TODO: remove libxml2 once Intel sorts out its package dependencies + apt --assume-yes install libxml2 intel-oneapi-runtime-opencl-2024 intel-oneapi-runtime-compilers-2024 || exit $? } @@ -27,7 +28,7 @@ gpgcheck=1 repo_gpgcheck=1 gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB EOF - dnf --assumeyes install intel-oneapi-runtime-opencl intel-oneapi-runtime-compilers || exit $? + dnf --assumeyes install intel-oneapi-runtime-opencl-2024 intel-oneapi-runtime-compilers-2024 || exit $? } # Read versions.json and set as environment variables