When you generate a MEX function for code that contains parfor
,
you see this warning message:
JIT technology does not support using OpenMP library, this loop will not be parallelized.
MATLAB® Coder™ generates a JIT MEX function and treats the parfor
-loop
as a for
-loop.
JIT compilation and use of the OpenMP application interface are enabled. JIT compilation is incompatible with the OpenMP application interface.
If you want to parallelize for
-loops, disable
JIT compilation.