loop fuser option (#20417)

This commit is contained in:
Danny Taller 2020-12-16 01:44:43 -08:00 committed by GitHub
parent c52d9dc445
commit d505ef8217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,9 +25,8 @@ class Care(CMakePackage, CudaPackage, ROCmPackage):
variant('benchmarks', default=True, description='Build benchmarks.') variant('benchmarks', default=True, description='Build benchmarks.')
variant('examples', default=True, description='Build examples.') variant('examples', default=True, description='Build examples.')
variant('docs', default=False, description='Build documentation') variant('docs', default=False, description='Build documentation')
# TODO: figure out gtest dependency and then set this default True
# and remove the +tests conflict below.
variant('tests', default=False, description='Build tests') variant('tests', default=False, description='Build tests')
variant('loop_fuser', default=False, description='Enable loop fusion capability')
depends_on('blt', type='build') depends_on('blt', type='build')
depends_on('blt@0.3.7:', type='build', when='+rocm') depends_on('blt@0.3.7:', type='build', when='+rocm')
@ -97,6 +96,9 @@ def cmake_args(self):
options.append('-DCARE_ENABLE_IMPLICIT_CONVERSIONS={0}'.format( options.append('-DCARE_ENABLE_IMPLICIT_CONVERSIONS={0}'.format(
'ON' if '+implicit_conversions' in spec else 'OFF')) 'ON' if '+implicit_conversions' in spec else 'OFF'))
options.append('-DCARE_ENABLE_LOOP_FUSER={0}'.format(
'ON' if '+loop_fuser' in spec else 'OFF'))
options.append('-DCAMP_DIR:PATH=' options.append('-DCAMP_DIR:PATH='
+ spec['camp'].prefix.share.camp.cmake) + spec['camp'].prefix.share.camp.cmake)
options.append('-DUMPIRE_DIR:PATH=' options.append('-DUMPIRE_DIR:PATH='