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'
This commit is contained in:
parent
1484a94b1e
commit
8d512ce9ae
1 changed files with 7 additions and 1 deletions
|
@ -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 @@ def cmake_args(self):
|
|||
'-DCMAKE_Fortran_COMPILER=%s' % self.compiler.f77
|
||||
])
|
||||
|
||||
if spec.satisfies('^cuda@9.0:'):
|
||||
options.extend([
|
||||
'-DGPU_TARGET=sm30'
|
||||
])
|
||||
|
||||
return options
|
||||
|
|
Loading…
Reference in a new issue