kokkos: turn host_values into a property (#13518)

* kokkos: turn host_values into a property

* Update package.py

* Update package.py
This commit is contained in:
Christoph Junghans 2019-10-31 11:46:05 -06:00 committed by Adam J. Stewart
parent e7f574aad5
commit a334007808

View File

@ -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'
)