Kokkos package: pthreads feature and new kokkos versions (#10943)

This commit is contained in:
Andrew Gaspar 2019-03-26 13:31:48 -06:00 committed by Peter Scheibel
parent 844ca31894
commit 1e6da47b4e

View file

@ -15,6 +15,8 @@ class Kokkos(Package):
git = "https://github.com/kokkos/kokkos.git"
version('develop', branch='develop')
version('2.8.00', sha256='1c72661f2d770517bff98837001b42b9c677d1df29f7493a1d7c008549aff630')
version('2.7.24', sha256='a308a80ea1488f4c18884b828ce7ae9f5210b9a6b2f61b208d875084d8da8cb0')
version('2.7.00', 'b357f9374c1008754babb4495f95e392')
version('2.5.00', '2db83c56587cb83b772d0c81a3228a21')
version('2.04.11', 'd4849cee6eb9001d61c30f1d9fe74336')
@ -27,6 +29,7 @@ class Kokkos(Package):
version('2.02.07', 'd5baeea70109249f7dca763074ffb202')
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")
variant('cuda', default=False, description="enable Cuda backend")
variant('openmp', default=False, description="enable OpenMP backend")
@ -151,6 +154,8 @@ def install(self, spec, prefix):
g_args.append('--with-serial')
if '+openmp' in spec:
g_args.append('--with-openmp')
if '+pthreads' in spec:
g_args.append('--with-pthread')
if '+qthreads' in spec:
g_args.append('--with-qthreads=%s' % spec['qthreads'].prefix)
if '+cuda' in spec: