Skip to content

Linux flang + clang build support #19930

Closed as not planned
Closed as not planned

Description

@DaveWK

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

Activity

  1. HaoZeke commented on Oct 30, 2021

    @HaoZeke
    Member

    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. :)

  2. rgommers commented on Sep 16, 2023

    @rgommers
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions