We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcc1559 + 9218e0f commit 8321193Copy full SHA for 8321193
devito/arch/compiler.py
@@ -549,14 +549,16 @@ def __init_finalize__(self, **kwargs):
549
if not configuration['safe-math']:
550
self.cflags.append('-ffast-math')
551
552
+ if language == 'openmp':
553
+ self.ldflags += ['-fopenmp']
554
+
555
if isinstance(platform, NvidiaDevice):
556
self.cflags.remove('-std=c99')
557
elif platform is AMDGPUX:
558
559
# Add flags for OpenMP offloading
560
if language in ['C', 'openmp']:
561
self.ldflags += ['-target', 'x86_64-pc-linux-gnu']
- self.ldflags += ['-fopenmp']
562
self.ldflags += [f'--offload-arch={platform.march}']
563
elif platform in [POWER8, POWER9]:
564
# It doesn't make much sense to use AOMP on Power, but it should work
0 commit comments