JIT Compilation Does Not Support OpenMP - MATLAB & Simulink (original) (raw)
Main Content
Issue
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.
Cause
JIT compilation and use of the OpenMP application interface are enabled. JIT compilation is incompatible with the OpenMP application interface.
Solution
If you want to parallelize for
-loops, disable JIT compilation.