Skip to content

Commit 3254fd0

Browse files
committed
Source MKL PATH
1 parent 0534325 commit 3254fd0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,12 @@ jobs:
9999
matrix:
100100
toolchain:
101101
- {compiler: intel, version: '2024.1'}
102-
include:
103-
- APT_PACKAGES: >-
104-
intel-oneapi-mkl-2024.1.0
105-
intel-oneapi-mkl-devel-2024.1.0
106102
build: [cmake]
107103
env:
108104
BUILD_DIR: ${{ matrix.build == 'cmake' && 'build' || '.' }}
105+
APT_PACKAGES: >-
106+
intel-oneapi-mkl
107+
intel-oneapi-mkl-devel
109108
steps:
110109
- name: Checkout code
111110
uses: actions/checkout@v4
@@ -124,7 +123,13 @@ jobs:
124123
with:
125124
compiler: ${{ matrix.toolchain.compiler }}
126125
version: ${{ matrix.toolchain.version }}
127-
126+
127+
- name: Install Intel oneAPI MKL
128+
run: |
129+
sudo apt-get install ${APT_PACKAGES}
130+
source /opt/intel/oneapi/mkl/latest/env/vars.sh
131+
printenv >> $GITHUB_ENV
132+
128133
# Build and test with external BLAS and LAPACK (MKL on Ubuntu with Intel compilers)
129134
- name: Configure with CMake and MKL
130135
run: >-
@@ -133,7 +138,8 @@ jobs:
133138
-DCMAKE_MAXIMUM_RANK:String=4
134139
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
135140
-DFIND_BLAS:STRING=TRUE
136-
-DBLA_VENDOR=Intel10_64lp
141+
-DBLAS_LIBRARIES="/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_rt.so"
142+
-DLAPACK_LIBRARIES="/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_rt.so"
137143
-S . -B build_mkl
138144
139145
- name: Build and compile with MKL

0 commit comments

Comments
 (0)