macOS – how to install OpenMP

Student install instructions (exact)

  1. Install command line tools:
xcode-select --install
  1. Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then run the “brew shellenv” command the installer prints.

  1. Install OpenMP runtime:
brew install libomp
  1. Build:
make

Quick diagnostic if this still fails

Have them run:

make clean
make V=1

and confirm the compile line starts with clang++, not g++.

Scroll to Top