diff options
author | lukebroskop <luke.roskop@hpe.com> | 2021-05-10 19:42:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 17:42:56 -0700 |
commit | b27ac37547877a502a1096e9d6d2556fff38cec9 (patch) | |
tree | 6ff9dfd48a21ba9db18d13c74db6b9b33d9c8e74 /var | |
parent | b6c124572c6df2c0798e0fcac84ae84e6ed0eb39 (diff) | |
download | spack-b27ac37547877a502a1096e9d6d2556fff38cec9.tar.gz spack-b27ac37547877a502a1096e9d6d2556fff38cec9.tar.bz2 spack-b27ac37547877a502a1096e9d6d2556fff38cec9.tar.xz spack-b27ac37547877a502a1096e9d6d2556fff38cec9.zip |
CrayPE fixes for MAGMA (#23497)
Force CCE to compile fortran modules with lower case names, allow for CCE to be the host compiler with nvcc
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/magma/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/magma/package.py b/var/spack/repos/builtin/packages/magma/package.py index 243ca67630..8d09bbc316 100644 --- a/var/spack/repos/builtin/packages/magma/package.py +++ b/var/spack/repos/builtin/packages/magma/package.py @@ -74,6 +74,9 @@ class Magma(CMakePackage, CudaPackage): options += ['-DBUILD_SHARED_LIBS=%s' % ('ON' if ('+shared' in spec) else 'OFF')] + if spec.satisfies('%cce'): + options += ['-DCUDA_NVCC_FLAGS=-allow-unsupported-compiler'] + if '+fortran' in spec: options.extend([ '-DUSE_FORTRAN=yes' @@ -83,6 +86,9 @@ class Magma(CMakePackage, CudaPackage): '-DCMAKE_Fortran_COMPILER=%s' % self.compiler.f77 ]) + if spec.satisfies('%cce'): + options.append('-DCMAKE_Fortran_FLAGS=-ef') + if spec.satisfies('^cuda'): cuda_arch = self.spec.variants['cuda_arch'].value if '@:2.2.0' in spec: |