Skip to content

Commit 9415bc0

Browse files
committed
Add note about setting MKL_DIR in newer MKL versions
1 parent 85ed244 commit 9415bc0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,12 @@ For other operating systems you should be able to modify the commands below appr
132132
# This runs an installer, simply follow the instructions.
133133
sudo sh ./l_onemkl_p_2022.0.2.136.sh
134134
```
135-
- Add the following to your .bashrc. Change the directory accordingly if your MKL version is different.
135+
- Add one of the following to your .bashrc so that cmake can find the MKL library. Change the directory accordingly if your MKL version is different.
136+
Note that older versions require setting `MKLROOT` while newer versions require `MKL_DIR`.
137+
You can find out which one from the cmake error message.
136138
```bash
137-
export MKLROOT=/opt/intel/oneapi/mkl/2022.0.2
139+
export MKLROOT=/opt/intel/oneapi/mkl/2022.0.2 # for older versions
140+
export MKL_DIR=/opt/intel/oneapi/mkl/2024.2 # for newer versions
138141
```
139142
140143
- [OpenGL / GLUT](https://www.opengl.org/)

0 commit comments

Comments
 (0)