HPCG Fix for the Cray complier (CCE) (#25197)

CCE's c++ compiler (Clang based) does not accept the '-ftree-vectorizer-verbose=0'
flag. That flag is removed and a suitable substitution is made.
This commit is contained in:
luker 2021-11-09 04:26:02 -06:00 committed by GitHub
parent a9c6881bbc
commit 8ce37d9153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,12 @@ class Hpcg(AutotoolsPackage):
def configure(self, spec, prefix):
CXXFLAGS = '-O3 -ffast-math -ftree-vectorize '
if '%aocc' not in self.spec:
if not spec.satisfies('%aocc') and not spec.satisfies('%cce'):
CXXFLAGS += ' -ftree-vectorizer-verbose=0 '
if spec.satisfies('%cce'):
CXXFLAGS += ' -Rpass=loop-vectorize'
CXXFLAGS += ' -Rpass-missed=loop-vectorize'
CXXFLAGS += ' -Rpass-analysis=loop-vectorize '
if '+openmp' in self.spec:
CXXFLAGS += self.compiler.openmp_flag
config = [