diff options
author | lukebroskop <luke.roskop@hpe.com> | 2021-05-17 12:22:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 11:22:16 -0600 |
commit | dd350e83d3fe57dd1ff1877ac4ea47bddfa7f8f2 (patch) | |
tree | f1f1e5fb61781d3df0427bcbbb9278fca5d45c6f /var | |
parent | 9d251e51a1703f5c6a949060d49c1038e9b92b97 (diff) | |
download | spack-dd350e83d3fe57dd1ff1877ac4ea47bddfa7f8f2.tar.gz spack-dd350e83d3fe57dd1ff1877ac4ea47bddfa7f8f2.tar.bz2 spack-dd350e83d3fe57dd1ff1877ac4ea47bddfa7f8f2.tar.xz spack-dd350e83d3fe57dd1ff1877ac4ea47bddfa7f8f2.zip |
CrayPE fix for axom (#23520)
Pass -ef to the cce fortran compiler, fix the build system to use the correct openmp flag for CCE
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/axom/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/axom/package.py b/var/spack/repos/builtin/packages/axom/package.py index a8609f2568..52840cea85 100644 --- a/var/spack/repos/builtin/packages/axom/package.py +++ b/var/spack/repos/builtin/packages/axom/package.py @@ -371,6 +371,9 @@ class Axom(CachedCMakePackage, CudaPackage): def cmake_args(self): options = [] + if self.spec.satisfies('%cce'): + options.append('-DCMAKE_Fortran_FLAGS=-ef') + if self.run_tests is False: options.append('-DENABLE_TESTS=OFF') else: @@ -380,3 +383,9 @@ class Axom(CachedCMakePackage, CudaPackage): 'BUILD_SHARED_LIBS', 'shared')) return options + + def patch(self): + if self.spec.satisfies('%cce'): + filter_file('PROPERTIES LINKER_LANGUAGE CXX', + 'PROPERTIES LINKER_LANGUAGE CXX \n LINK_FLAGS "-fopenmp"', + 'src/axom/quest/examples/CMakeLists.txt') |