Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 384
    • Issues 384
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1656

Closed
Open
Created Mar 31, 2020 by Alexey Matveichev@alexey

OpenMP flags on macOS

Functionality to add/problem to solve

Current wmake rules for OpenMP produce compilation error on macOS. As a consequence cfMesh is not built.

Target audience

People, who would like to build and use OpenFOAM(R) on macOS.

Proposal

Add the following to wmake/rules/General/darwin64Clang/openmp:

COMP_OPENMP = -DUSE_OMP -Xpreprocessor -fopenmp
LINK_OPENMP = -lomp

libomp (https://openmp.llvm.org/) should be installed separately.

What does success look like, and how can we measure that?

cfMesh is built.

Links / references

  1. https://stackoverflow.com/questions/40095958/apple-clang-fopenmp-not-working

Funding

N/A

Assignee
Assign to
Time tracking