8000 f2py and OpenMP linking · Issue #11908 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
f2py and OpenMP linking #11908
Closed
Closed
@wtjones1

Description

@wtjones1

When building an extension module with f2py from numpy as late as 1.15.1, the link command fails to include the OpenMP compiler flag (gfortran: -fopenmp, ifort: -qopenmp, etc.). Therefore, the extension module is not linked against the required Offloading and Multi Processing Runtime Library and possibly other dependent libraries which vary by compiler.

While there may be another method of specifying the appropriate linker option (which I would be interested in knowing), it would appear that this option should be passed to the linker as part of the linker_so options or equivalent.

Note that, at least with gfortran and ifort, a compiler command line option instructs the linker to include the Offloading and Multi Processing Runtime Library (which is dependent on the compiler used). Therefore, adding the library(s) in a generic way that supports multiple Fortran compilers in a build environment prevents the explicit listing of these libraries when invoking f2py.

Numpy/Python version information: 1.15.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0