Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MKL instructions in README.md #6550

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,20 @@ 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, make sure that MKL version 10.3.6 or higher is installed. For a 64-bit architecture, the MKL environment should be set up as:
To use the Intel [MKL] BLAS and LAPACK libraries, make sure that MKL version 10.3.6 or higher is installed. Setting environment variables is required for proper function. Depending on what shell your operating system uses, (BASH/DASH/CSH/TCSH) different syntax may be required for setting up the proper MKL environment. In a UNIX environment, the following commands can be placed in the `.profile`, `.bashrc` or `.bash_profile` files in your home folder. An exception to the terminal window guidelines is Mac OS X’s Terminal.app, which runs a login shell by default for each new terminal window, calling `.bash_profile`. If you do not know what shell type you are using, you can type "echo $SHELL" at the prompt.

source /path/to/mkl/bin/mklvars.sh intel64 ilp64
For a 64-bit architecture, using BASH, the MKL environment should be set up as follows:
1) open the appropriate shell environment initialization file
2) paste the following and then save

MKLPATH=path/to/your/mkl/folder *usually '/opt/intel/mkl'
source ${MKLPATH}/bin/mklvars.sh intel64 ilp64
export MKL_INTERFACE_LAYER=ILP64

source is a bash shell built-in command that executes the content of the file passed as argument.
export is a bash shell built-in command that allows variables to be available to other programs.

3) open your terminal window and the environment should be set.

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

Expand Down