diff options
author | Satish Balay <balay@mcs.anl.gov> | 2017-11-09 13:34:40 -0600 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-11-09 11:34:40 -0800 |
commit | 8d512ce9ae9a8b71c7442f327c595ac476b261af (patch) | |
tree | 1d6a9f58d9804e516c59b1d27511b6d854e4c564 /var | |
parent | 1484a94b1e7239d0f8c5350640b428bb520cf301 (diff) | |
download | spack-8d512ce9ae9a8b71c7442f327c595ac476b261af.tar.gz spack-8d512ce9ae9a8b71c7442f327c595ac476b261af.tar.bz2 spack-8d512ce9ae9a8b71c7442f327c595ac476b261af.tar.xz spack-8d512ce9ae9a8b71c7442f327c595ac476b261af.zip |
magma: cuda updates [from xsdk-0.3.0 branch] (#6160)
- add gcc dependency per cuda versions
- Fix for cuda-9.0 as it does not support sm20
nvcc fatal : Unsupported gpu architecture 'compute_20'
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/magma/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/magma/package.py b/var/spack/repos/builtin/packages/magma/package.py index 2007442037..bccac28497 100644 --- a/var/spack/repos/builtin/packages/magma/package.py +++ b/var/spack/repos/builtin/packages/magma/package.py @@ -40,7 +40,8 @@ class Magma(CMakePackage): description='Enable Fortran bindings support') depends_on('lapack') - + depends_on('cuda@9.0:', when='%gcc@6.0:6.9.9') + depends_on('cuda@8.0:', when='%gcc@5.0:') patch('ibm-xl.patch', when='@2.2:%xl') patch('ibm-xl.patch', when='@2.2:%xl_r') @@ -64,4 +65,9 @@ class Magma(CMakePackage): '-DCMAKE_Fortran_COMPILER=%s' % self.compiler.f77 ]) + if spec.satisfies('^cuda@9.0:'): + options.extend([ + '-DGPU_TARGET=sm30' + ]) + return options |