Skip to content

Commit

Permalink
Costmetic changes so mcpu and march remain the first flag
Browse files Browse the repository at this point in the history
  • Loading branch information
raminammour authored and mloubout committed Aug 8, 2023
1 parent e2a88c4 commit 656f31f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devito/arch/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ def __init__(self, *args, **kwargs):

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

language = kwargs.pop('language', configuration['language'])
try:
Expand Down

0 comments on commit 656f31f

Please sign in to comment.