Main Content

Resolve Warning: JIT Compilation Incompatibility

R2026b

Issue

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 with

    The 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 a for-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:

When you disable JIT compilation, the code generator produces a C/C++ MEX function.

See Also

Topics