@when('@0.91:0.93')
def cmake_args(self):
    spec = self.spec
    args = self.common_config_args
    args.extend([('-DWITH_CUDA:BOOL=%s' % ('+cuda' in spec)), ('-DWITH_CUDNN:BOOL=%s' % ('+cuda' in spec)), ('-DELEMENTAL_USE_CUBLAS:BOOL=%s' % ('+cublas' in spec['elemental'])), '-DWITH_TBINF=OFF', '-DWITH_VTUNE=OFF', '-DElemental_DIR={0}'.format(spec['elemental'].prefix), '-DELEMENTAL_MATH_LIBS={0}'.format(spec['elemental'].libs), '-DVERBOSE=0', '-DLBANN_HOME=.'])
    if (spec.variants['dtype'].value == 'float'):
        args.append('-DDATATYPE=4')
    elif (spec.variants['dtype'].value == 'double'):
        args.append('-DDATATYPE=8')
    if ('+vision' in spec):
        args.append('-DOpenCV_DIR:STRING={0}'.format(spec['opencv'].prefix))
    if ('+cudnn' in spec):
        args.append('-DcuDNN_DIR={0}'.format(spec['cudnn'].prefix))
    if (('+cub' in spec) and spec.satisfies('^cuda@:10.99')):
        args.append('-DCUB_DIR={0}'.format(spec['cub'].prefix))
    return args
@when('@0.91:0.93')
def cmake_args(self):
    spec = self.spec
    args = self.common_config_args
    args.extend([('-DWITH_CUDA:BOOL=%s' % ('+cuda' in spec)), ('-DWITH_CUDNN:BOOL=%s' % ('+cuda' in spec)), ('-DELEMENTAL_USE_CUBLAS:BOOL=%s' % ('+cublas' in spec['elemental'])), '-DWITH_TBINF=OFF', '-DWITH_VTUNE=OFF', '-DElemental_DIR={0}'.format(spec['elemental'].prefix), '-DELEMENTAL_MATH_LIBS={0}'.format(spec['elemental'].libs), '-DVERBOSE=0', '-DLBANN_HOME=.'])
    if (spec.variants['dtype'].value == 'float'):
        args.append('-DDATATYPE=4')
    elif (spec.variants['dtype'].value == 'double'):
        args.append('-DDATATYPE=8')
    if ('+vision' in spec):
        args.append('-DOpenCV_DIR:STRING={0}'.format(spec['opencv'].prefix))
    if ('+cudnn' in spec):
        args.append('-DcuDNN_DIR={0}'.format(spec['cudnn'].prefix))
    if (('+cub' in spec) and spec.satisfies('^cuda@:10.99')):
        args.append('-DCUB_DIR={0}'.format(spec['cub'].prefix))
    return args