Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Setting environment variables

inteljc
Beginner
823 Views
Hi all,
I'm having some problems setting the environment variables which is the second step in the 'Getting Started'-section in the user's guide. The text says:

When the installation of Intel MKL for Mac OS* X is complete, set the INCLUDE, MKLROOT, DYLD_LIBRARY_PATH, MANPATH, LIBRARY_PATH, CPATH, and FPATH environment variables in the command shell using one of the script files in the tools/environment directory. Choose the script corresponding to your system architecture and command shell as explained in Table 2-1:

But I have no experience what so ever with configuring the script-files. Could one of you maybe explain a newbie what he should add in the following script to connect properly to the MKL library?

export MKLROOT="/opt/intel/Compiler/11.1/089/Frameworks/mkl"

if [ -z "${INCLUDE}" ]

then

export INCLUDE="${MKLROOT}/Headers"

else

export INCLUDE="${MKLROOT}/Headers:$INCLUDE"

fi

if [ -z "${DYLD_LIBRARY_PATH}" ]

then

export DYLD_LIBRARY_PATH="${MKLROOT}/lib/em64t"

else

export DYLD_LIBRARY_PATH="${MKLROOT}/lib/em64t:$DYLD_LIBRARY_PATH"

fi

if [ -z "${MANPATH}" ]

then

export MANPATH="${MKLROOT}/man/en_US:$(manpath)"

else

export MANPATH="${MKLROOT}/man/en_US:$MANPATH"

fi

if [ -z "${LIBRARY_PATH}" ]

then

export LIBRARY_PATH="${MKLROOT}/lib/em64t"

else

export LIBRARY_PATH="${MKLROOT}/lib/em64t:$LIBRARY_PATH"

fi

if [ -z "${CPATH}" ]

then

export CPATH="${MKLROOT}/include"

else

export CPATH="${MKLROOT}/include:$CPATH"

fi

if [ -z "${FPATH}" ]

then

export FPATH="${MKLROOT}/include"

else

export FPATH="${MKLROOT}/include:$FPATH"

fi

if [ -z "${NLSPATH}" ]

then

export NLSPATH="${MKLROOT}/lib/em64t/locale/%l_%t/%N"

else

export NLSPATH="${MKLROOT}/lib/em64t/locale/%l_%t/%N:$NLSPATH"

fi

Have a 64-bit processor and running Snow Leo, ver. 10.6.4).

Thanks!

0 Kudos
1 Reply
barragan_villanueva_
Valued Contributor I
823 Views

Hi,

You need just select needed for you script in order to sourceit in the command shell.

All MKL-related env-variables will be set.

0 Kudos
Reply