summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/kokkos/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py
index 0567286891..28849a218f 100644
--- a/var/spack/repos/builtin/packages/kokkos/package.py
+++ b/var/spack/repos/builtin/packages/kokkos/package.py
@@ -28,6 +28,8 @@ class Kokkos(Package):
version('2.02.15', 'de41e38f452a50bb03363c519fe20769')
version('2.02.07', 'd5baeea70109249f7dca763074ffb202')
+ variant('debug', default=False, description="Build debug version of Kokkos")
+
variant('serial', default=True, description="enable Serial backend (default)")
variant('pthreads', default=False, description="enable Pthreads backend")
variant('qthreads', default=False, description="enable Qthreads backend")
@@ -148,6 +150,10 @@ class Kokkos(Package):
if '+pic' in spec:
g_args.append('--cxxflags=-fPIC')
+ # Build Debug
+ if '+debug' in spec:
+ g_args.append('--debug')
+
# Backends
if '+serial' in spec:
g_args.append('--with-serial')