GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Linux flang + clang build support · Issue #19930 · numpy/numpy

Linux flang + clang build support #19930

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Linux flang + clang build support#19930
Copy link
Labels
component: numpy.distutils

Description

@DaveWK
DaveWK
opened on Sep 23, 2021
Issue body actions

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
    added
    component: numpy.distutils
    on Oct 30, 2021
  2. HaoZeke commented on Oct 30, 2021

    @HaoZeke
    HaoZeke
    on Oct 30, 2021
    Member
    More actions

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

  3. rgommers commented on Sep 16, 2023

    @rgommers
    rgommers
    on Sep 16, 2023
    Member
    More actions

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

  4. rgommers
    closed this as not plannedon Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: numpy.distutils

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.