From f59011f31418dd78121683696dc2ba23a80f9bb1 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Thu, 26 Jan 2017 10:33:20 +0100 Subject: Adol-C: Enable trig/erf functions; advanced branching (#2747) --- var/spack/repos/builtin/packages/adol-c/package.py | 11 ++++++++--- 1 file 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'): -- cgit v1.2.3-70-g09d2