summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRobert Pavel <rspavel@lanl.gov>2022-03-30 00:21:17 -0700
committerGitHub <noreply@github.com>2022-03-30 09:21:17 +0200
commit54d738ff9c3a74d514eee652aa5ae93d97fd5ae9 (patch)
treeb92ed58d1e26768f9ef9e168b45ac52da20601ef /var
parente58ac0705d658bcd906e0334c5259fd58f5f53f4 (diff)
downloadspack-54d738ff9c3a74d514eee652aa5ae93d97fd5ae9.tar.gz
spack-54d738ff9c3a74d514eee652aa5ae93d97fd5ae9.tar.bz2
spack-54d738ff9c3a74d514eee652aa5ae93d97fd5ae9.tar.xz
spack-54d738ff9c3a74d514eee652aa5ae93d97fd5ae9.zip
Flecsi: updated version semantic (#29780)
Updated flecsi spackage to better support changes in control variables in post 2.1.0 releases while also making legacy versions clearer as to what is a tagged release and what is a rolling-ish development branch
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/flecsi/package.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/flecsi/package.py b/var/spack/repos/builtin/packages/flecsi/package.py
index 84a4cd05a9..35d44f68b3 100644
--- a/var/spack/repos/builtin/packages/flecsi/package.py
+++ b/var/spack/repos/builtin/packages/flecsi/package.py
@@ -22,9 +22,8 @@ class Flecsi(CMakePackage, CudaPackage):
tags = ['e4s']
- version('develop', branch='devel', submodules=False)
- version('1', git="https://github.com/laristra/flecsi.git", branch='1', submodules=False, preferred=False)
- version('1.4', git="https://github.com/laristra/flecsi.git", branch='1.4', submodules=False, preferred=False)
+ version('develop', branch='develop', submodules=False)
+ version('1.4.develop', git="https://github.com/laristra/flecsi.git", branch='1.4', submodules=False, preferred=False)
version('1.4.2', git="https://github.com/laristra/flecsi.git", tag='v1.4.2', submodules=False, preferred=True)
version('2.1.0', tag='v2.1.0', submodules=False, preferred=False)
version('flecsph', git="https://github.com/laristra/flecsi.git", branch="stable/flecsph", submodules=True, preferred=False)
@@ -151,21 +150,27 @@ class Flecsi(CMakePackage, CudaPackage):
if '+external_cinch' in spec:
options.append('-DCINCH_SOURCE_DIR=' + spec['cinch'].prefix)
+ backend_flag = ''
+ if spec.satisfies('@2.1.1:'):
+ backend_flag = 'FLECSI_BACKEND'
+ else:
+ backend_flag = 'FLECSI_RUNTIME_MODEL'
+
if spec.variants['backend'].value == 'legion':
- options.append('-DFLECSI_RUNTIME_MODEL=legion')
+ options.append('-D' + backend_flag + '=legion')
options.append('-DENABLE_MPI=ON')
elif spec.variants['backend'].value == 'mpi':
- options.append('-DFLECSI_RUNTIME_MODEL=mpi')
+ options.append('-D' + backend_flag + '=mpi')
options.append('-DENABLE_MPI=ON')
elif spec.variants['backend'].value == 'hpx':
- options.append('-DFLECSI_RUNTIME_MODEL=hpx')
+ options.append('-D' + backend_flag + '=hpx')
options.append('-DENABLE_MPI=ON')
options.append('-DHPX_IGNORE_CMAKE_BUILD_TYPE_COMPATIBILITY=ON')
elif spec.variants['backend'].value == 'charmpp':
- options.append('-DFLECSI_RUNTIME_MODEL=charmpp')
+ options.append('-D' + backend_flag + '=charmpp')
options.append('-DENABLE_MPI=ON')
else:
- options.append('-DFLECSI_RUNTIME_MODEL=serial')
+ options.append('-D' + backend_flag + '=serial')
options.append('-DENABLE_MPI=OFF')
if '+shared' in spec: