diff options
author | Andrew Gaspar <agaspar@lanl.gov> | 2019-05-16 18:35:23 -0600 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-05-16 17:35:23 -0700 |
commit | 8675f44d455cece14e6b561383167542f395d2ab (patch) | |
tree | 8b1d201581db8beb26b5ec595e81967ffa8a0c40 /var | |
parent | c03be0d65a81a33c2bd6440d01d689dff3b6e467 (diff) | |
download | spack-8675f44d455cece14e6b561383167542f395d2ab.tar.gz spack-8675f44d455cece14e6b561383167542f395d2ab.tar.bz2 spack-8675f44d455cece14e6b561383167542f395d2ab.tar.xz spack-8675f44d455cece14e6b561383167542f395d2ab.zip |
Kokkos package: add debug variant (#11469)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/kokkos/package.py | 6 |
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') |