summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/picsar/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/picsar/package.py b/var/spack/repos/builtin/packages/picsar/package.py
index b8d7ede7d9..55541b8c37 100644
--- a/var/spack/repos/builtin/packages/picsar/package.py
+++ b/var/spack/repos/builtin/packages/picsar/package.py
@@ -31,6 +31,10 @@ class Picsar(MakefilePackage):
parallel = False
+ def patch(self):
+ if '%arm' in self.spec:
+ filter_file(r'!\$OMP SIMD SAFELEN\(LVEC2\)', '', 'src/diags/diags.F90')
+
@property
def build_targets(self):
targets = []
@@ -65,6 +69,10 @@ class Picsar(MakefilePackage):
targets.append('SYS = default')
+ if '%gcc' in self.spec:
+ targets.append('FARGS=-g -fbounds-check -O3 -fopenmp '
+ '-JModules -fallow-argument-mismatch')
+
return targets
def install(self, spec, prefix):