summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Pelteret <jppelteret@gmail.com>2017-01-26 10:33:20 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-26 01:33:20 -0800
commitf59011f31418dd78121683696dc2ba23a80f9bb1 (patch)
tree95dd85254483b36cb34c8c1c709abf0f8136dbcb
parentd324d13456611c4c93f0eb33a636affd7839febd (diff)
downloadspack-f59011f31418dd78121683696dc2ba23a80f9bb1.tar.gz
spack-f59011f31418dd78121683696dc2ba23a80f9bb1.tar.bz2
spack-f59011f31418dd78121683696dc2ba23a80f9bb1.tar.xz
spack-f59011f31418dd78121683696dc2ba23a80f9bb1.zip
Adol-C: Enable trig/erf functions; advanced branching (#2747)
-rw-r--r--var/spack/repos/builtin/packages/adol-c/package.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/adol-c/package.py b/var/spack/repos/builtin/packages/adol-c/package.py
index 5c8d894757..4260b6b21b 100644
--- a/var/spack/repos/builtin/packages/adol-c/package.py
+++ b/var/spack/repos/builtin/packages/adol-c/package.py
@@ -36,6 +36,8 @@ class AdolC(Package):
version('2.6.2', '0f9547584c99c0673e4f81cf64e8d865')
version('2.6.1', '1032b28427d6e399af4610e78c0f087b')
+ variant('advanced_branching', default=False,
+ description='Enable advanced branching to reduce retaping')
variant('doc', default=True, description='Install documentation')
variant('openmp', default=False, description='Enable OpenMP support')
variant('sparse', default=False, description='Enable sparse drivers')
@@ -45,10 +47,13 @@ class AdolC(Package):
patch('openmp_exam_261.patch', when='@2.6.1')
def install(self, spec, prefix):
- make_args = ['--prefix=%s' % prefix]
+ make_args = ['--prefix=%s' % prefix,
+ '--enable-atrig-erf']
- # --with-cflags=FLAGS use CFLAGS=FLAGS (default: -O3 -Wall -ansi)
- # --with-cxxflags=FLAGS use CXXFLAGS=FLAGS (default: -O3 -Wall)
+ if '+advanced_branching' in spec:
+ make_args.extend([
+ '--enable-advanced-branching'
+ ])
if '+openmp' in spec:
if spec.satisfies('%gcc'):