From 74936839b8b8333b2994884d40df3424b2e83346 Mon Sep 17 00:00:00 2001 From: ZUO Zhihua Date: Sat, 13 Jul 2024 06:57:29 +0800 Subject: [PATCH] Source MKL PATH --- .github/workflows/CI.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b2d9aeaca..ce66b7fe3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -101,8 +101,8 @@ jobs: - {compiler: intel, version: '2024.1'} include: - APT_PACKAGES: >- - intel-oneapi-mkl-2024.1.0 - intel-oneapi-mkl-devel-2024.1.0 + intel-oneapi-mkl + intel-oneapi-mkl-devel build: [cmake] env: BUILD_DIR: ${{ matrix.build == 'cmake' && 'build' || '.' }} @@ -125,6 +125,21 @@ jobs: compiler: ${{ matrix.toolchain.compiler }} version: ${{ matrix.toolchain.version }} + - name: Add Intel repository + run: | + wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list + + + - name: Install Intel oneAPI MKL + run: | + sudo apt-get update + sudo apt-get install ${APT_PACKAGES} + source /opt/intel/oneapi/mkl/latest/env/vars.sh + printenv >> $GITHUB_ENV + # Build and test with external BLAS and LAPACK (MKL on Ubuntu with Intel compilers) - name: Configure with CMake and MKL run: >-