From a334007808e70c45c71a420ff1f71d8f8b0db3e2 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Thu, 31 Oct 2019 11:46:05 -0600 Subject: kokkos: turn host_values into a property (#13518) * kokkos: turn host_values into a property * Update package.py * Update package.py --- var/spack/repos/builtin/packages/kokkos/package.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py index dc97173755..cf7c486da9 100644 --- a/var/spack/repos/builtin/packages/kokkos/package.py +++ b/var/spack/repos/builtin/packages/kokkos/package.py @@ -67,6 +67,11 @@ class Kokkos(Package): variant('enable_lambda', default=False, description="set enable_lambda Kokkos CUDA option") + host_values = ('AMDAVX', 'ARMv80', 'ARMv81', 'ARMv8-ThunderX', + 'Power7', 'Power8', 'Power9', + 'WSM', 'SNB', 'HSW', 'BDW', 'SKX', + 'KNC', 'KNL') + gpu_values = ('Kepler30', 'Kepler32', 'Kepler35', 'Kepler37', 'Maxwell50', 'Maxwell52', 'Maxwell53', 'Pascal60', 'Pascal61', @@ -82,9 +87,7 @@ class Kokkos(Package): variant( 'host_arch', default='none', - values=('AMDAVX', 'ARMv80', 'ARMv81', 'ARMv8-ThunderX', - 'Power7', 'Power8', 'Power9', - 'WSM', 'SNB', 'HSW', 'BDW', 'SKX', 'KNC', 'KNL'), + values=host_values, description='Set the host architecture to use' ) -- cgit v1.2.3-70-g09d2