Main Content

Install OpenMP Library on macOS Platform

You can generate parallel for-loops on the macOS platform by using parfor in your MATLAB® code. The code generator uses the OpenMP (Open Multiprocessing) application interface to support shared-memory, multicore code generation. To run the code generated for a parfor-loop outside of MATLAB, you must install an OpenMP library.

To install the OpenMP library libomp on the macOS platform, do one of the following:

  • Install libomp from the LLVM download page.

    1. Navigate to the LLVM download page.

    2. Download the OpenMP source.

    3. Compile the source and install.

  • Install libomp by using homebrew. At the terminal, run this command.

    brew install libomp

See Also

Related Topics

External Websites