Resolve Warning: JIT Compilation Incompatibility
R2026bIssue
Just-in-time (JIT) compilation is incompatible with custom code, code that updates
build information, or code that contains parfor. , including. When
you generate a JIT MEX function that uses an incompatible feature or option, you see one
of these warnings:
When you generate a MEX function for code that includes custom code or updates the build information, you see a warning message that starts with:
JIT compilation is incompatible withThe code generator produces a C/C++ MEX function instead of a JIT MEX function.
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.The code generator produces a JIT MEX function and treats the
parfor-loop as afor-loop.
Possible Solutions
To resolve the warning, refactor the MATLAB® code to avoid the JIT incompatible features. Alternatively, disable JIT compilation using one of these approaches:
In a code configuration object, set the
EnableJITproperty tofalse.In the Code Generation Settings dialog box, clear the Use JIT compilation for build type of MEX check box.
When you disable JIT compilation, the code generator produces a C/C++ MEX function.