kokkos: bugfix for case wherein kokkos backends enabled in spack but not parsed correctly (#9396)

This commit is contained in:
Geoff Womeldorff 2018-10-01 17:36:55 -06:00 committed by Christoph Junghans
parent f38bfde6f3
commit 922c1a5652

View File

@ -158,13 +158,13 @@ def install(self, spec, prefix):
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