summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDavid Beckingsale <davidbeckingsale@gmail.com>2018-02-12 13:34:54 -0500
committerscheibelp <scheibel1@llnl.gov>2018-02-12 10:34:54 -0800
commita403a1ca6842d7123e3a3e7cf6d070d6d6747836 (patch)
treeb5c0654e8b9f2a32cebc9056b72932ff045c1ba0 /var
parente4ba199fc1d16c28ee1400da12f3c070404f8cdc (diff)
downloadspack-a403a1ca6842d7123e3a3e7cf6d070d6d6747836.tar.gz
spack-a403a1ca6842d7123e3a3e7cf6d070d6d6747836.tar.bz2
spack-a403a1ca6842d7123e3a3e7cf6d070d6d6747836.tar.xz
spack-a403a1ca6842d7123e3a3e7cf6d070d6d6747836.zip
RAJA package: add versions and CUDA/openmp support (#7201)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/raja/package.py30
1 files changed, 29 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/raja/package.py b/var/spack/repos/builtin/packages/raja/package.py
index 18d2135991..7d019821cf 100644
--- a/var/spack/repos/builtin/packages/raja/package.py
+++ b/var/spack/repos/builtin/packages/raja/package.py
@@ -29,6 +29,34 @@ class Raja(CMakePackage):
"""RAJA Parallel Framework."""
homepage = "http://software.llnl.gov/RAJA/"
- version('develop', git='https://github.com/LLNL/RAJA.git', branch="master", submodules="True")
+ version('master', git='https://github.com/LLNL/RAJA.git', branch='master', submodules='True')
+ version('develop', git='https://github.com/LLNL/RAJA.git', branch='develop', submodules='True')
+ version('0.5.3', git='https://github.com/LLNL/RAJA.git', tag='v0.5.3', submodules="True")
+ version('0.5.2', git='https://github.com/LLNL/RAJA.git', tag='v0.5.2', submodules="True")
+ version('0.5.1', git='https://github.com/LLNL/RAJA.git', tag='v0.5.1', submodules="True")
+ version('0.5.0', git='https://github.com/LLNL/RAJA.git', tag='v0.5.0', submodules="True")
+ version('0.4.1', git='https://github.com/LLNL/RAJA.git', tag='v0.4.1', submodules="True")
+ version('0.4.0', git='https://github.com/LLNL/RAJA.git', tag='v0.4.0', submodules="True")
+
+ variant('cuda', default=False, description='Build with CUDA backend')
+ variant('openmp', default=True, description='Build OpenMP backend')
+
+ depends_on('cuda', when='+cuda')
depends_on('cmake@3.3:', type='build')
+
+ def cmake_args(self):
+ spec = self.spec
+
+ options = []
+
+ if '+openmp' in spec:
+ options.extend([
+ '-DENABLE_OPENMP=On'])
+
+ if '+cuda' in spec:
+ options.extend([
+ '-DENABLE_CUDA=On',
+ '-DCUDA_TOOLKIT_ROOT_DIR=%s' % (spec['cuda'].prefix)])
+
+ return options