From 4e9257682ba8cbee54b5d428768706bc3d5af9c3 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Tue, 3 Oct 2023 04:52:00 -0400 Subject: [PATCH] [ci] use OneAPI MKL to resolve https://github.com/ValeevGroup/BTAS/issues/161 --- .github/workflows/cmake.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 5c90cec9..e732ed5d 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -74,14 +74,12 @@ jobs: fi # install MKL if want vendor linalg if [ "${{matrix.linalg}}" = "vendor" ]; then - wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB - sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB - rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB - sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list' - sudo apt-get update - sudo apt-get install intel-mkl-64bit-2019.4-070 + sudo sh -c 'wget -O - https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor > /usr/share/keyrings/oneapi-archive-keyring.gpg' + sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" > /etc/apt/sources.list.d/oneAPI.list' + sudo apt-get -yq update + sudo apt-get install intel-oneapi-mkl-devel echo "BLAS_PREFERENCE_LIST=IntelMKL" >> $GITHUB_ENV - echo "MKLROOT=/opt/intel/mkl" >> $GITHUB_ENV + echo "MKLROOT=/opt/intel/oneapi/mkl/latest" >> $GITHUB_ENV else echo "BLAS_PREFERENCE_LIST=ReferenceBLAS" >> $GITHUB_ENV fi