summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Womeldorff <womeld@lanl.gov>2018-10-01 17:36:55 -0600
committerChristoph Junghans <christoph.junghans@gmail.com>2018-10-01 17:36:55 -0600
commit922c1a56520e3f376f4ce7a40324a5c452bc0f82 (patch)
tree5fd950c05eb743b05ba648bcf4083346121522d1
parentf38bfde6f36fe29efa5ed5317ed6b4890d8664b3 (diff)
downloadspack-922c1a56520e3f376f4ce7a40324a5c452bc0f82.tar.gz
spack-922c1a56520e3f376f4ce7a40324a5c452bc0f82.tar.bz2
spack-922c1a56520e3f376f4ce7a40324a5c452bc0f82.tar.xz
spack-922c1a56520e3f376f4ce7a40324a5c452bc0f82.zip
kokkos: bugfix for case wherein kokkos backends enabled in spack but not parsed correctly (#9396)
-rw-r--r--var/spack/repos/builtin/packages/kokkos/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py
index f66e3edee4..848be225c5 100644
--- a/var/spack/repos/builtin/packages/kokkos/package.py
+++ b/var/spack/repos/builtin/packages/kokkos/package.py
@@ -158,13 +158,13 @@ class Kokkos(Package):
cuda_options_args = []
# Backends
- if 'serial' in spec:
+ if '+serial' in spec:
g_args.append('--with-serial')
if '+openmp' in spec:
g_args.append('--with-openmp')
- if 'qthreads' in spec:
+ if '+qthreads' in spec:
g_args.append('--with-qthreads=%s' % spec['qthreads'].prefix)
- if 'cuda' in spec:
+ if '+cuda' in spec:
g_args.append('--with-cuda=%s' % spec['cuda'].prefix)
# Host architectures
host_arch = spec.variants['host_arch'].value