Skip to content

clang fopenmp on macOS #40

@lukeolson

Description

@lukeolson

Great package.

To use OpenMP on a mac with clang, I replaced -fopenmp with -Xpreprocessor -fopenmp in the compile flags and -fopenmp with -lomp in the link flags using the output from get_openmp_flags() here:
https://github.com/astropy/extension-helpers/blob/main/extension_helpers/_openmp_helpers.py#L137

This is a bit of a hack (on my part). Are there better ideas (or any plans to add mac support like this)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions