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

Thread MKL FFT within a thread

happyIntelCamper
Beginner
1,118 Views
Using Intel Professional Fortran version 10 or 11. If you have a parallel region created
via openmp and lets say eight threads. How do you get MKL FFT to thread within a thread?
Seems like I just get one thread no matter what.
0 Kudos
1 Reply
TimP
Honored Contributor III
1,118 Views
Using Intel Professional Fortran version 10 or 11. If you have a parallel region created
via openmp and lets say eight threads. How do you get MKL FFT to thread within a thread?
Seems like I just get one thread no matter what.

If you want nested parallelism, you must set OMP_NESTED. It seems unlikely you would want this if you are running 8 threads in the outer region. If 8 threads is the normal limit, set by OMP_NUM_THREADS or otherwise, and you want more, you will need a larger value of OMP_NUM_THREADS.
0 Kudos
Reply