gromacs: make sure cuda support is disabled when cuda=False (#10936)
* abinit: Fix building with hdf5/netcdf.
* gromacs: Fix attempt to build with cuda support when 'cuda=False'
If for some reason there's a cuda toolkit installed by other means,
(i.e. not by spack) cmake will still try to build with cuda support,
even though 'cuda=False' is the default of the spec.
* Revert "abinit: Fix building with hdf5/netcdf."
This reverts commit e16f725e37
.
This should not be here.
This commit is contained in:
parent
1db5a3e0a3
commit
9a8c4cf071
@ -87,6 +87,8 @@ def cmake_args(self):
|
||||
options.append('-DGMX_GPU:BOOL=ON')
|
||||
options.append('-DCUDA_TOOLKIT_ROOT_DIR:STRING=' +
|
||||
self.spec['cuda'].prefix)
|
||||
else:
|
||||
options.append('-DGMX_GPU:BOOL=OFF')
|
||||
|
||||
simd_value = self.spec.variants['simd'].value
|
||||
if simd_value == 'auto':
|
||||
|
Loading…
Reference in New Issue
Block a user