-
Notifications
You must be signed in to change notification settings - Fork 229
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
There was a problem hiding this 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?
devito/arch/compiler.py
Outdated
@@ -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') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
c538b5f
to
9da38e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
9da38e8
to
7b1e9be
Compare
c9a3e4a
to
6054f29
Compare
recent NVC has deprecated gpu=pinned and suggested to rather use what this patch uses