summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorluker <luke.roskop@hpe.com>2021-11-09 04:26:02 -0600
committerGitHub <noreply@github.com>2021-11-09 10:26:02 +0000
commit8ce37d9153f460038ea3a355888751ab94e30c0b (patch)
treef5bc114e36bcc4cae1d21af3078888975fbe6e30 /var
parenta9c6881bbc21f247f26d8de99a70f8a8a68f7911 (diff)
downloadspack-8ce37d9153f460038ea3a355888751ab94e30c0b.tar.gz
spack-8ce37d9153f460038ea3a355888751ab94e30c0b.tar.bz2
spack-8ce37d9153f460038ea3a355888751ab94e30c0b.tar.xz
spack-8ce37d9153f460038ea3a355888751ab94e30c0b.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hpcg/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/hpcg/package.py b/var/spack/repos/builtin/packages/hpcg/package.py
index faf22d712b..9f3fccd645 100644
--- a/var/spack/repos/builtin/packages/hpcg/package.py
+++ b/var/spack/repos/builtin/packages/hpcg/package.py
@@ -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 = [