summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjthies <jonas.thies@dlr.de>2018-12-03 16:40:51 +0100
committerSatish Balay <balay@mcs.anl.gov>2018-12-03 09:40:51 -0600
commit3a2045b7c074d4c53cefbbdad113a7717b1d9b99 (patch)
tree70fa70980d3484697e741d00a497a4f03c339154
parent66a62d82c42ecc1ebf671a602a1adde4bbb1ca8e (diff)
downloadspack-3a2045b7c074d4c53cefbbdad113a7717b1d9b99.tar.gz
spack-3a2045b7c074d4c53cefbbdad113a7717b1d9b99.tar.bz2
spack-3a2045b7c074d4c53cefbbdad113a7717b1d9b99.tar.xz
spack-3a2045b7c074d4c53cefbbdad113a7717b1d9b99.zip
Phist 1.7.4 (#9996)
* packages/phist: new version 1.7.4 with new variant 'host' to enable/disable host-specific optimizations.
-rw-r--r--var/spack/repos/builtin/packages/phist/package.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/phist/package.py b/var/spack/repos/builtin/packages/phist/package.py
index aa593157b5..e3f65a32b3 100644
--- a/var/spack/repos/builtin/packages/phist/package.py
+++ b/var/spack/repos/builtin/packages/phist/package.py
@@ -24,6 +24,7 @@ class Phist(CMakePackage):
version('develop', branch='devel')
version('master', branch='master')
+ version('1.7.4', sha256='ef0c97fda9984f53011020aff3e61523833320f5f5719af2f2ed84463cccb98b')
version('1.7.3', sha256='ab2d853c9ba13bcd3069fcc61c359cb412466a2e4b22ebbd2f5263cffa685126')
version('1.7.2', sha256='29b504d78b5efd57b87d2ca6e20bc8a32b1ba55b40f5a5b7189cc0d28e43bcc0')
version('1.6.1', sha256='4ed4869f24f920a494aeae0f7d1d94fe9efce55ebe0d298a5948c9603e07994d')
@@ -43,6 +44,10 @@ class Phist(CMakePackage):
description='verbosity. 0: errors 1: +warnings 2: +info '
'3: +verbose 4: +extreme 5; +debug')
+ variant('host', default=True,
+ description='allow PHIST to use compiler flags that lead to host-'
+ 'specific code. Set this to False when cross-compiling.')
+
variant('shared', default=True,
description='Enables the build of shared libraries')
@@ -72,6 +77,12 @@ class Phist(CMakePackage):
description='generate Fortran 2003 bindings (requires Python3 and '
'a Fortran compiler)')
+ # in older versions, it is not possible to completely turn off OpenMP
+ conflicts('~openmp', when='@:1.7.3')
+ # in older versions, it is not possible to turn off the use of host-
+ # specific compiler flags in Release mode.
+ conflicts('~host', when='@:1.7.3')
+
# ###################### Dependencies ##########################
depends_on('cmake@3.8:', type='build')
@@ -127,6 +138,8 @@ class Phist(CMakePackage):
% ('ON' if '+trilinos' in spec else 'OFF'),
'-DXSDK_ENABLE_Fortran:BOOL=%s'
% ('ON' if '+fortran' in spec else 'OFF'),
+ '-DPHIST_HOST_OPTIMIZE:BOOL=%s'
+ % ('ON' if '+host' in spec else 'OFF'),
]
return args