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:
parent
a9c6881bbc
commit
8ce37d9153
@ -33,8 +33,12 @@ class Hpcg(AutotoolsPackage):
|
|||||||
|
|
||||||
def configure(self, spec, prefix):
|
def configure(self, spec, prefix):
|
||||||
CXXFLAGS = '-O3 -ffast-math -ftree-vectorize '
|
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 '
|
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:
|
if '+openmp' in self.spec:
|
||||||
CXXFLAGS += self.compiler.openmp_flag
|
CXXFLAGS += self.compiler.openmp_flag
|
||||||
config = [
|
config = [
|
||||||
|
Loading…
Reference in New Issue
Block a user