Skip to content

Commit

Permalink
arch: Enable NVC on Host platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Apr 12, 2022
1 parent 9912123 commit 7681225
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion devito/arch/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,13 @@ def __init__(self, *args, **kwargs):
self.cflags.remove('-std=c99')
self.cflags.remove('-O3')
self.cflags.remove('-Wall')
self.cflags += ['-std=c++11', '-acc:gpu', '-gpu=pinned', '-mp']

self.cflags += ['-std=c++11', '-mp']

platform = kwargs.pop('platform', configuration['platform'])
if platform is NVIDIAX:
self.cflags += ['-acc:gpu', '-gpu=pinned']

if not configuration['safe-math']:
self.cflags.append('-fast')
# Default PGI compile for a target is GPU and single threaded host.
Expand Down

0 comments on commit 7681225

Please sign in to comment.