Skip to content

Commit

Permalink
Update MKL instructions in the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Viral B. Shah committed Dec 28, 2013
1 parent 0ea136f commit 29b43b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ LIBMNAME = libimf
endif

ifeq ($(USE_MKL), 1)
ifeq ($(USE_BLAS64), 1)
export MKL_INTERFACE_LAYER := ILP64
endif
USE_SYSTEM_BLAS=1
USE_SYSTEM_LAPACK=1
LIBBLASNAME = libmkl_rt
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,18 @@ SuiteSparse is a special case, since it is typically only installed as a static

### Intel Math Kernel Libraries

To use the Intel [MKL] BLAS and LAPACK libraries, edit the following settings in `Make.inc`:
To use the Intel [MKL] BLAS and LAPACK libraries, make sure that MKL version 10.3.6 or higher is installed, and the MKL environment is set up:

source /path/to/mkl/bin/mklvars.sh

On a 64-bit computer, ensure that the ILP64 version of MKL is used:

export MKL_INTERFACE_LAYER=ILP64

When building julia, pass the `USE_MKL=1` option to `make` or add the following line to `Make.user`.

USE_MKL = 1
MKLLIB = /path/to/mkl/lib/arch

`MKLLIB` points to the directory containing `libmkl_rt.so`. MKL version 10.3.6 or greater is required.
To rebuild a pre-built Julia source install with MKL support, delete the OpenBLAS, ARPACK, and SuiteSparse dependencies from `deps`, and run `make cleanall testall`.

<a name="Source-Code-Organization"/>
Expand Down

0 comments on commit 29b43b4

Please sign in to comment.