Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for using clang-omp with XCode 9 #82

Open
alk3ovation opened this issue Nov 10, 2017 · 2 comments
Open

Instructions for using clang-omp with XCode 9 #82

alk3ovation opened this issue Nov 10, 2017 · 2 comments

Comments

@alk3ovation
Copy link

I've updated the instructions for using clang-omp with XCode 9.

Using OpenMP with XCode 9

  1. Install clang-omp using homebrew: brew install llvm.
  2. Add llvm binaries to your path using : echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile.
  3. Create a new Xcode project.
  4. Create a symlink - /usr/local/bin/clang-omp -> /usr/local/Cellar/llvm/5.0.0/bin/clang
  5. Create a symlink in the same directory - clang++-omp -> /usr/local/Cellar/llvm/5.0.0/bin/clang++
  6. Under Build Settings
    A. Add a new user-defined setting CC with the value /usr/local/bin/clang-omp ->
    B. Add -fopenmp to Other C Flags
    C. Add /usr/local/include to Header Search Paths
    D. Set Enable Modules (C and Objective-C) to No.
    E. Set Enable Index-While-Building Functionality to No
  7. Under Build Phases
    A. Add /usr/local/lib/libiomp5.dylib to Link Binary With Libraries
@alexey-bataev
Copy link
Member

alexey-bataev commented Nov 10, 2017 via email

@RoyiAvital
Copy link

Where can one find a compiled version of OpenMP to link with your command:

clang -Xclang -fopenmp <your_program> -L <path to libomp> -lomp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants