diff options
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: |