diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/qmcpack/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/qmcpack/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/qmcpack/package.py b/var/spack/repos/builtin/packages/qmcpack/package.py index 4c8b7b39e8..f40bb1108f 100644 --- a/var/spack/repos/builtin/packages/qmcpack/package.py +++ b/var/spack/repos/builtin/packages/qmcpack/package.py @@ -303,7 +303,10 @@ class Qmcpack(CMakePackage, CudaPackage): 'QMCPACK only supports compilation for a single ' 'GPU architecture at a time' ) - args.append('-DCUDA_ARCH=sm_{0}'.format(cuda_arch)) + if '@3.14.0:' in self.spec: + args.append('-DCMAKE_CUDA_ARCHITECTURES={0}'.format(cuda_arch)) + else: + args.append('-DCUDA_ARCH=sm_{0}'.format(cuda_arch)) else: args.append('-DQMC_CUDA=0') |