Skip to content

Commit

Permalink
[ci] use OneAPI MKL to resolve #161
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Oct 3, 2023
1 parent 33d2218 commit 4e92576
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e92576

Please sign in to comment.