summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid M. Rogers <predictivestatmech@gmail.com>2020-10-13 14:23:04 -0400
committerGitHub <noreply@github.com>2020-10-13 13:23:04 -0500
commitbeeab6e1b99ee5756ea7f57131609ea03a85458b (patch)
treee26e90a2505a05dc6fdb8c3fd4b45bdc11af06ad
parent74a30bc6240181522a413776811fe8d4f5e063c4 (diff)
downloadspack-beeab6e1b99ee5756ea7f57131609ea03a85458b.tar.gz
spack-beeab6e1b99ee5756ea7f57131609ea03a85458b.tar.bz2
spack-beeab6e1b99ee5756ea7f57131609ea03a85458b.tar.xz
spack-beeab6e1b99ee5756ea7f57131609ea03a85458b.zip
Make DEAL_II_MPI_WITH_CUDA_SUPPORT conditional on mpi package option. (#19279)
-rw-r--r--var/spack/repos/builtin/packages/dealii/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/dealii/package.py b/var/spack/repos/builtin/packages/dealii/package.py
index edc73b6cfc..4a841b5aae 100644
--- a/var/spack/repos/builtin/packages/dealii/package.py
+++ b/var/spack/repos/builtin/packages/dealii/package.py
@@ -396,7 +396,8 @@ class Dealii(CMakePackage, CudaPackage):
])
if '+cuda' in spec:
options.extend([
- self.define('DEAL_II_MPI_WITH_CUDA_SUPPORT', True),
+ self.define('DEAL_II_MPI_WITH_CUDA_SUPPORT',
+ spec['mpi'].satisfies('+cuda')),
self.define('CUDA_HOST_COMPILER', spec['mpi'].mpicxx)
])