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.
Navigate to the LLVM download page.
Download the OpenMP source.
Compile the source and install.
Install libomp by using homebrew. At the terminal, run this command.
brew install libomp
See Also
Related Topics
- Algorithm Acceleration Using Parallel for-Loops (parfor)
- Automatically Parallelize for Loops in Generated Code