Rename cray compiler to cce (#24653)

cp2k was using the outdated and Incorrect compiler name `cray`.
This commit is contained in:
Joe Heaton 2021-07-02 20:15:43 +01:00 committed by GitHub
parent c895332284
commit 6547f41096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,7 @@ def edit(self, spec, prefix):
'intel': ['-O2', '-pc64', '-unroll', ], 'intel': ['-O2', '-pc64', '-unroll', ],
'pgi': ['-fast'], 'pgi': ['-fast'],
'nvhpc': ['-fast'], 'nvhpc': ['-fast'],
'cray': ['-O2'], 'cce': ['-O2'],
'xl': ['-O3'], 'xl': ['-O3'],
'aocc': ['-O1'], 'aocc': ['-O1'],
} }
@ -293,7 +293,7 @@ def edit(self, spec, prefix):
] ]
elif '%pgi' in spec or '%nvhpc' in spec: elif '%pgi' in spec or '%nvhpc' in spec:
fcflags += ['-Mfreeform', '-Mextend'] fcflags += ['-Mfreeform', '-Mextend']
elif '%cray' in spec: elif '%cce' in spec:
fcflags += ['-emf', '-ffree', '-hflex_mp=strict'] fcflags += ['-emf', '-ffree', '-hflex_mp=strict']
elif '%xl' in spec: elif '%xl' in spec:
fcflags += ['-qpreprocess', '-qstrict', '-q64'] fcflags += ['-qpreprocess', '-qstrict', '-q64']
@ -306,7 +306,7 @@ def edit(self, spec, prefix):
ldflags.append(self.compiler.openmp_flag) ldflags.append(self.compiler.openmp_flag)
nvflags.append('-Xcompiler="{0}"'.format( nvflags.append('-Xcompiler="{0}"'.format(
self.compiler.openmp_flag)) self.compiler.openmp_flag))
elif '%cray' in spec: # Cray enables OpenMP by default elif '%cce' in spec: # Cray enables OpenMP by default
cflags += ['-hnoomp'] cflags += ['-hnoomp']
cxxflags += ['-hnoomp'] cxxflags += ['-hnoomp']
fcflags += ['-hnoomp'] fcflags += ['-hnoomp']