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

How does MKL Parallelize Operations?

Mickan__Mitchell
Beginner
692 Views

I was wondering are individual mkl operation calls parallelized or do the separate mkl calls run in parallel? e.g. I have code similar to this

for (int i=0; i<N; i++)
      mkl_dot_product_call()

Is the mkl_dot_product_call() executed with multiple threads or will multiple threads each execute their own mkl_dot_product_call()?

0 Kudos
1 Reply
Gennady_F_Intel
Moderator
692 Views

Please take a look at these documented cases: Calling Intel MKL Functions from Multi-threaded Applications-https://software.intel.com/en-us/mkl-linux-developer-guide-calling-intel-mkl-functions-from-multi-threaded-applications and OpenMP threaded Function and Problems: https://software.intel.com/en-us/mkl-linux-developer-guide-openmp-threaded-functions-and-problems

You may find out the answers on your questions depends on your usage model. 

0 Kudos
Reply