summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pika/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pika/package.py b/var/spack/repos/builtin/packages/pika/package.py
index 382aef2a26..8fd1398ae0 100644
--- a/var/spack/repos/builtin/packages/pika/package.py
+++ b/var/spack/repos/builtin/packages/pika/package.py
@@ -16,6 +16,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
url = "https://github.com/pika-org/pika/archive/0.0.0.tar.gz"
maintainers = ['msimberg', 'albestro', 'teonnik']
+ version('0.2.0', sha256='712bb519f22bdc9d5ee4ac374d251a54a0af4c9e4e7f62760b8ab9a177613d12')
version('0.1.0', sha256='aa0ae2396cd264d821a73c4c7ecb118729bb3de042920c9248909d33755e7327')
version('main', git='https://github.com/pika-org/pika.git', branch='main')
@@ -44,6 +45,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
variant('examples', default=False, description='Build and install examples')
variant('mpi', default=False, description='Enable MPI support')
+ variant('apex', default=False, description='Enable APEX support', when='@0.2.0:')
# Build dependencies
depends_on('git', type='build')
@@ -63,6 +65,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
depends_on('mpi', when='+mpi')
depends_on('cuda@11:', when='+cuda')
+ depends_on('apex', when='+apex')
for cxxstd in cxxstds:
depends_on(
@@ -89,6 +92,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
self.define_from_variant('PIKA_WITH_CUDA', 'cuda'),
self.define_from_variant('PIKA_WITH_HIP', 'rocm'),
self.define_from_variant('PIKA_WITH_MPI', 'mpi'),
+ self.define_from_variant('PIKA_WITH_APEX', 'apex'),
self.define('PIKA_WITH_TESTS', self.run_tests),
self.define_from_variant(
'PIKA_WITH_GENERIC_CONTEXT_COROUTINES', 'generic_coroutines'),