8000 ENH, BLD: Support for the NVIDIA HPC SDK nvfortran compiler by danbeibei · Pull Request #17344 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH, BLD: Support for the NVIDIA HPC SDK nvfortran compiler #17344

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

Merged
merged 4 commits into from
Oct 9, 2020
Merged

ENH, BLD: Support for the NVIDIA HPC SDK nvfortran compiler #17344

merged 4 commits into from
Oct 9, 2020

Conversation

danbeibei
Copy link
Contributor
@danbeibei danbeibei commented Sep 17, 2020

Add support for the nvfortran compiler, a version of pgfortran.

Closes #17341.

@@ -12,7 +12,7 @@ class PGroupFCompiler(FCompiler):

compiler_type = 'pg'
description = 'Portland Group Fortran Compiler'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update this description too?

Copy link
Contributor Author
@danbeibei danbeibei Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compiler_type might be also changed to "nv", but it will break compatibility for build script that uses --fcompiler=pg.
Should we create a all new compiler type nv.py and leave pg.py as is for older versions ?

Copy link
Member
@melissawm melissawm Sep 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's reasonable - but I think you need to also check distutils/fcompiler/__init__.py and add an entry to tests/test_public_api.py for the new compiler. There may be other places worth checking.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hints.
I removed the modifications on the pg.py files and created the nv.py one instead.

Copy link
Member
@melissawm melissawm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me, but I don't know if there are specific flags for other systems - I see that was the case for pgfortran.

@danbeibei
Copy link
Contributor Author

I guess the flags would be the same as those for pgfortran on other platforms.
But I didn't test, I striped down the code to only what I have tested on our platform.

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@charris charris closed this Oct 5, 2020
@charris charris reopened this Oct 5, 2020
@charris charris merged commit 328135c into numpy:master Oct 9, 2020
@charris
Copy link
Member
charris commented Oct 9, 2020

Thanks @danbeibei .

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Oct 9, 2020
@charris charris mentioned this pull request Oct 10, 2020
20 tasks
@charris charris changed the title ENH: Support for the NVIDIA HPC SDK nvfortran compiler ENH, BLD: Support for the NVIDIA HPC SDK nvfortran compiler Oct 20, 2020
charris added a commit to charris/numpy that referenced this pull request Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for the NVIDIA HPC SDK fortran compiler
4 participants
0