def setUp(self):
    (self.order, self.axis) = self.order_and_axis
    self.old_routine_accelerators = _acc.get_routine_accelerators()
    self.old_reduction_accelerators = _acc.get_reduction_accelerators()
    if (self.backend == 'device'):
        if (self.axis is not None):
            raise unittest.SkipTest('does not support')
        _acc.set_routine_accelerators(['cub'])
        _acc.set_reduction_accelerators([])
    elif (self.backend == 'block'):
        _acc.set_routine_accelerators([])
        _acc.set_reduction_accelerators(['cub'])
def setUp(self):
    (self.order, self.axis) = self.order_and_axis
    self.old_routine_accelerators = _acc.get_routine_accelerators()
    self.old_reduction_accelerators = _acc.get_reduction_accelerators()
    if (self.backend == 'device'):
        if (self.axis is not None):
            raise unittest.SkipTest('does not support')
        _acc.set_routine_accelerators(['cub'])
        _acc.set_reduction_accelerators([])
    elif (self.backend == 'block'):
        _acc.set_routine_accelerators([])
        _acc.set_reduction_accelerators(['cub'])