Skip to content
Snippets Groups Projects
Commit 9a8c4cf0 authored by fcannini's avatar fcannini Committed by Massimiliano Culpo
Browse files

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 e16f725e37b91193fe519b1821446c76ab551928.

This should not be here.
parent 1db5a3e0
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment