-
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: Correct march
to mcpu
for ppc
#2174
Conversation
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 for the contribution.
please check
For commit tags
devito/arch/compiler.py
Outdated
@@ -396,6 +396,12 @@ def __init__(self, *args, **kwargs): | |||
# from `=512` | |||
self.cflags.append('-mprefer-vector-width=512') | |||
|
|||
if platform in [POWER8, POWER9]: | |||
# -march isn't supported on power architectures |
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.
Indentation looks off, will break CI
march
to mcpu
for ppcmarch
to mcpu
for ppc
Thanks -- content is uncontroversial! As @mloubout suggested, could you rebase to honor our commit message format? Thanks a lot |
@@ -382,7 +382,7 @@ def __init__(self, *args, **kwargs): | |||
|
|||
platform = kwargs.pop('platform', configuration['platform']) | |||
|
|||
self.cflags += ['-march=native', '-Wno-unused-result', | |||
self.cflags += ['-Wno-unused-result', |
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.
This may also break flake8?
Codecov Report
@@ Coverage Diff @@
## master #2174 +/- ##
==========================================
- Coverage 87.09% 87.08% -0.01%
==========================================
Files 226 226
Lines 40172 40175 +3
Branches 7330 7331 +1
==========================================
+ Hits 34987 34988 +1
- Misses 4605 4606 +1
- Partials 580 581 +1
|
Rebase onto master with a single commit (the last one is good) and GTG |
Switch between -march=native (x86) and -mcpu=native -mtune=native (PowerPC) Costmetic changes so `mcpu` and `march` remain the first flag Fix indentation arch: Correct march to mcpu for ppc Correcting commit message since editing the title on github webui wasn't enough (I couldn't figure out how to rebase from the webui, sorry!). Maybe you can squash to this commit when merging?
This should be a very minor change: Switch between -march=native (x86) and -mcpu=native -mtune=native (PowerPC)
fixes #2146
I am not sure if you are testing on PPC (I guess not since the error never showed up) so not sure what to do for an appropriate test.