Compile NumPy with flang and fix issues

Description

Try to compile NumPy with flang-new. Triage and fix the issues.

is a dependency for

Activity

Show:

Carlos Seo June 14, 2024 at 3:54 PM

Flang enablement is not the issue anymore for NumPy. It is building correctly now on x86_64.

On AArch64, there is a problem regarding mcpu flags that is probably an issue on how the frontend passes them to the backend in clang++, or a mistake in the NumPy build system, i.e.:

These are C++ issues, not Fortran. So, from a Flang perspective, this is completed.

However, I’ll keep an eye out for anyone hitting this on AArch64.

Leandro Lupori September 13, 2023 at 6:08 PM

Daniel Chen is just starting to work on Flang’s procedure pointers support.

Omair Javaid April 10, 2023 at 12:06 PM

Blocked on Flang procedure pointers support.

Omair Javaid April 10, 2023 at 12:02 PM

List of outstanding issues with last update till January from Usman:

Missing support for procedure pointers: Peixin (Huawei) from upstream is working on implementing this. A few patches were recently committed.

output for selected_real_kind(0) intrinsic does not the match output for gfortran.

Upstream suggested that changing the test case is the correct solution

Semantic check fails in numpy/f2py/tests/test_callback.py

Seems like an f2py generates incorrect/noncompliant fortran code

Segmentation fault in numpy/f2py/tests/test_value_attrspec.py

  • TODO

Niyas Sait November 9, 2022 at 4:14 PM

> not yet implemented: intrinsic: selected_real_kind. Ticket:

Fixed upstream

"not yet implemented: procedure pointers". Discussion here:

RFC in progress -

Done

Details

Assignee

Reporter

Original estimate

Time tracking

No time logged4w remaining

Components

Sprint

Fix versions

Priority

Checklist

Sentry

Created February 21, 2022 at 2:22 PM
Updated June 25, 2024 at 4:52 PM
Resolved June 14, 2024 at 3:54 PM