qmcpack pass cuda_arch correctly to cmake (#31407)
Fix compilation of @3.14.0+cuda (didn't check older versions).
This commit is contained in:
parent
87b8321fa9
commit
bc215c7504
@ -303,6 +303,9 @@ def cmake_args(self):
|
|||||||
'QMCPACK only supports compilation for a single '
|
'QMCPACK only supports compilation for a single '
|
||||||
'GPU architecture at a time'
|
'GPU architecture at a time'
|
||||||
)
|
)
|
||||||
|
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))
|
args.append('-DCUDA_ARCH=sm_{0}'.format(cuda_arch))
|
||||||
else:
|
else:
|
||||||
args.append('-DQMC_CUDA=0')
|
args.append('-DQMC_CUDA=0')
|
||||||
|
Loading…
Reference in New Issue
Block a user