Skip to content
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

arch: Avoid deprecated compiler flags #2461

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

FabioLuporini
Copy link
Contributor

recent NVC has deprecated gpu=pinned and suggested to rather use what this patch uses

@FabioLuporini FabioLuporini added the arch jitting, archinfo, ... label Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.17%. Comparing base (9548e67) to head (6054f29).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
devito/arch/compiler.py 28.57% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2461      +/-   ##
==========================================
- Coverage   87.18%   87.17%   -0.01%     
==========================================
  Files         239      239              
  Lines       45126    45131       +5     
  Branches     3997     3999       +2     
==========================================
+ Hits        39343    39344       +1     
- Misses       5103     5106       +3     
- Partials      680      681       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@georgebisbas georgebisbas left a comment

Choose a reason for hiding this comment

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

WOuld this still work w previous nvc versions I guess?

@@ -601,7 +601,7 @@ def __init_finalize__(self, **kwargs):
platform = kwargs.pop('platform', configuration['platform'])

if platform is NVIDIAX:
self.cflags.append('-gpu=pinned')
self.cflags.append('-gpu=mem:separate:pinnedalloc')
Copy link
Contributor

Choose a reason for hiding this comment

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

probably need a version check like icx for openmp

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(@georgebisbas ) pushed tweak so that older versions are guaranteed to work

Copy link
Contributor

@georgebisbas georgebisbas left a comment

Choose a reason for hiding this comment

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

Thanks!

@mloubout mloubout merged commit 1cd8cf3 into master Oct 9, 2024
31 checks passed
@mloubout mloubout deleted the avoid-deprecated-flags branch October 9, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch jitting, archinfo, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants