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 — ENH: About the "hard coded" options in IntelVisualFCompiler of Numpy's distutils · Issue #21484 · numpy/numpy

ENH: About the "hard coded" options in IntelVisualFCompiler of Numpy's distutils #21484

New issue
Copy link
New issue
Copy link
Closed
#24532
Closed
ENH: About the "hard coded" options in IntelVisualFCompiler of Numpy's distutils#21484
#24532
Copy link
Assignees
HaoZeke
Labels
component: numpy.distutilscomponent: numpy.f2py

Description

@dongkeun-oh
dongkeun-oh
opened on May 10, 2022
Issue body actions

Proposed new feature or change:

I just found that the compiler options are written in the getflags function in each of the fortran compiler classes.
As a moderate approach to specify such a "hard coded" flags for each of compiler, it looks reasonable to force lowercase naming with underscore postfix in consistent with the GNU compiler's default condition.
So, the Intel fortran class of IntelVisualFCompiler has /nologo, /MD, /nbs, /names:lowercase, and /assume:underscore flags by default.
However, this will lead a trouble, whenever you attempt to generate a f2py python class out of the established source codes, particularly including C subroutines, where they are supposed to be built on the standard options of uppercase (without underscore) naming convention.
Actually, I solved such a matter by my own brute force modification for numpy/distutils/fcompiler/intel.py to remove those options.
So, would you make it plain by default without /names:lowercase, and /assume:underscore, and to enable
any user defined configuration for the distutils or f2py projects?

Activity

  1. mattip
    added
    component: numpy.distutils
    component: numpy.f2py
    on May 10, 2022
  2. mattip commented on May 10, 2022

    @mattip
    mattip
    on May 10, 2022
    Member
    More actions

    If things are working as expected, you should be able to override these defaults by setting environment variables.

  3. dongkeun-oh commented on May 11, 2022

    @dongkeun-oh
    dongkeun-oh
    on May 11, 2022
    ContributorAuthor
    More actions

    Neither setting F77, F90, FFLAGS, F77FLAGS, F90FLAGS nor FOPT doesn't work, as I tried according to the advice.
    They never override the default setting; f2py is tested on windows 10, python 3.9.7 (intelpython) and numpy 1.21.2.
    Is there any other spell which I missed, or any misunderstanding of mine?

  4. HaoZeke commented on May 18, 2022

    @HaoZeke
    HaoZeke
    on May 18, 2022
    Member
    More actions

    Updating distutils at this stage might not be a good idea (it is EOL), but documenting existing "forced" options would be welcome.

    Additionally, the Intel Fortran toolchain itself has been rehauled into ifx (the LLVM set) so this might not be a good thing to patch now.

  5. HaoZeke
    self-assigned this
    on May 20, 2022
  6. HaoZeke commented on May 20, 2022

    @HaoZeke
    HaoZeke
    on May 20, 2022
    Member
    More actions

    The fix here would be checking the environment variables, if any of them are set, the defaults will not be applied.

    Also the documentation can be clearer on our defaults.

  7. charris
    closed this as completedin #24532on Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @HaoZeke
    HaoZeke

Labels

component: numpy.distutilscomponent: numpy.f2py

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.