adol-c: add variant stdczero (#27721)
This commit is contained in:
parent
4859649229
commit
67c8a63a0a
1 changed files with 8 additions and 14 deletions
|
@ -30,6 +30,8 @@ class AdolC(AutotoolsPackage):
|
||||||
description='Enable advanced branching to reduce retaping')
|
description='Enable advanced branching to reduce retaping')
|
||||||
variant('atrig_erf', default=True,
|
variant('atrig_erf', default=True,
|
||||||
description='Enable arc-trig and error functions')
|
description='Enable arc-trig and error functions')
|
||||||
|
variant('stdczero', default=True,
|
||||||
|
description='Enable default initialization for the adouble datatype')
|
||||||
variant('doc', default=True, description='Install documentation')
|
variant('doc', default=True, description='Install documentation')
|
||||||
variant('openmp', default=False, description='Enable OpenMP support')
|
variant('openmp', default=False, description='Enable OpenMP support')
|
||||||
variant('sparse', default=False, description='Enable sparse drivers')
|
variant('sparse', default=False, description='Enable sparse drivers')
|
||||||
|
@ -70,25 +72,17 @@ def configure_args(self):
|
||||||
'--with-boost=no'
|
'--with-boost=no'
|
||||||
)
|
)
|
||||||
|
|
||||||
if '+advanced_branching' in spec:
|
|
||||||
configure_args.append(
|
|
||||||
'--enable-advanced-branching'
|
|
||||||
)
|
|
||||||
|
|
||||||
if '+atrig_erf' in spec:
|
|
||||||
configure_args.append(
|
|
||||||
'--enable-atrig-erf'
|
|
||||||
)
|
|
||||||
|
|
||||||
if '+openmp' in spec:
|
if '+openmp' in spec:
|
||||||
configure_args.append(
|
configure_args.append(
|
||||||
'--with-openmp-flag={0}'.format(self.compiler.openmp_flag)
|
'--with-openmp-flag={0}'.format(self.compiler.openmp_flag)
|
||||||
)
|
)
|
||||||
|
|
||||||
if '+sparse' in spec:
|
configure_args.extend(self.enable_or_disable('advanced-branching',
|
||||||
configure_args.append(
|
variant='advanced_branching'))
|
||||||
'--enable-sparse'
|
|
||||||
)
|
configure_args.extend(self.enable_or_disable('atrig-erf', variant='atrig_erf'))
|
||||||
|
configure_args.extend(self.enable_or_disable('sparse'))
|
||||||
|
configure_args.extend(self.enable_or_disable('stdczero'))
|
||||||
|
|
||||||
# We can simply use the bundled examples to check
|
# We can simply use the bundled examples to check
|
||||||
# whether Adol-C works as expected
|
# whether Adol-C works as expected
|
||||||
|
|
Loading…
Reference in a new issue