Skip to content

Commit

Permalink
arch: Correct march to mcpu for ppc
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
raminammour authored Jul 28, 2023
1 parent 5349a89 commit 0a220fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/arch/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def __init__(self, *args, **kwargs):
self.cflags.append('-mprefer-vector-width=512')

if platform in [POWER8, POWER9]:
# -march isn't supported on power architectures
# -march isn't supported on power architectures, is -mtune needed?
self.cflags = ['-mcpu=native'] + self.cflags
else:
self.cflags = ['-march=native'] + self.cflags
Expand Down

0 comments on commit 0a220fe

Please sign in to comment.