10000 Linux flang + clang build support · Issue #19930 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Linux flang + clang build support #19930

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

Closed
DaveWK opened this issue Sep 23, 2021 · 2 comments
Closed

Linux flang + clang build support #19930

DaveWK opened this issue Sep 23, 2021 · 2 comments

Comments

@DaveWK
Copy link
DaveWK commented Sep 23, 2021

Feature

Currently it seems flang is only supported for win32 systems:
https://github.com/numpy/numpy/blob/main/numpy/distutils/fcompiler/__init__.py#L744

It would be nice to use the AMD AOCC packages for building to be able to take advantage of the hardware-optimizations:
https://developer.amd.com/amd-aocc/
as well as other use cases where there are flang/clang optimizations on linux, such as AMD's ROCM OpenMP packages.

I saw this ticket here:
#13462
but also wanted to request a way to specify clang as well as flang, or if there might be a way to do it via pip that just isn't in the documentation

@HaoZeke
Copy link
Member
HaoZeke commented Oct 30, 2021

It seems unlikely that the 3ff9227 flang included there would work for the current LLVM Flang "F18". Classic flang which was based off of pgifortran might not be a very long term solution so I wouldn't count on it being used. The flang/clang optimizations are all F18 based.

Also since np.distutils are deprecated and distutils will be removed in Python 3.12.0 in October 2023, it might not be an area worth exploring.

clang is very well supported already, so I'm not sure what needs to be done for it. Another issue (or an edit) with a focus on AOCC would be good. :)

@rgommers
Copy link
Member

We won't be accepting new features for numpy.distutils anymore - I suggest switching to either Meson or CMake. Closing, thanks all

@rgommers rgommers closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0