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

Does MKL_SERIAL environment variable obsolete since MKL10.0?

sspine
Beginner
803 Views

I have been using MKL since MKL6.0. I noticed that MKL_SERIAL is not mentioned from MKL10.0. Is it obsolete?

0 Kudos
3 Replies
TimP
Honored Contributor III
803 Views
Quoting - sspine

I have been using MKL since MKL6.0. I noticed that MKL_SERIAL is not mentioned from MKL10.0. Is it obsolete?

It's obsolete in the case where you don't want to be able to turn on threading in MKL. Then you should link the sequential (stub) library.

0 Kudos
sspine
Beginner
803 Views
Quoting - tim18

It's obsolete in the case where you don't want to be able to turn on threading in MKL. Then you should link the sequential (stub) library.

Does this mean it is still useful when I use parallel MKL?

Obviously, it makes no sense for sequential library.

0 Kudos
Todd_R_Intel
Employee
803 Views

When using the sequential library then yes, of course no control is needed. If you're using the threaded libraries you can control threading using either traditional OpenMP controls or the MKL controls introduced in MKL 10.0. Threading control functions and environment variables are described in the "Managing Performance and Memory" chapter of the user guide or in the 'Support Functions" chapter of the reference manual. Documents can be found here online.

Todd

0 Kudos
Reply