PICSAR: added support for GCC >10.0 and arm compiler (#24927)
* -fallow-argument-mismatch flag added when compiling with GCC to avoid a compilation error when using a GCC version > 10.0. Co-authored-by: Haz99 <jsalamerosanz@gmail.com> * Filtered every occurrence of "!$OMP SIMD SAFELEN(LVEC2)" when compiling with nvhcp to avoid a compilation error. Co-authored-by: Haz99 <jsalamerosanz@gmail.com> * Line with more than 80 characters split into multiple lines. Co-authored-by: Haz99 <jsalamerosanz@gmail.com>
This commit is contained in:
parent
0d6a2381b2
commit
c0b383b3e1
@ -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 @@ def build_targets(self):
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user