def METHOD_NAME(program_config, predictor_config):
    target_type = predictor_config.target()
    if target_type not in [
            TargetType.ARM, TargetType.Host, TargetType.X86,
            TargetType.Metal, TargetType.OpenCL
    ]:
        if program_config.attr["reduce_all"]:
            return True