MCPcopy Create free account
hub / github.com/alibaba/BladeDISC / add_arguments_common

Function add_arguments_common

scripts/python/common_setup.py:684–724  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

682 return os.path.join(root, "VERSION")
683
684def add_arguments_common(parser):
685 parser.add_argument(
686 "--cpu_only",
687 required=False,
688 action="store_true",
689 help="Build tao with cpu support only",
690 )
691 parser.add_argument(
692 "--aarch64",
693 required=False,
694 action="store_true",
695 help="Build tao with aarch64 support only",
696 )
697 parser.add_argument(
698 "--dcu",
699 required=False,
700 action="store_true",
701 help="Build tao with dcu support only",
702 )
703 parser.add_argument(
704 "--rocm",
705 required=False,
706 action="store_true",
707 help="Build tao with rocm support only",
708 )
709 parser.add_argument(
710 "--rocm_path",
711 required=False,
712 default=None,
713 help="Build tao where rocm locates",
714 )
715 parser.add_argument(
716 "--platform_alibaba", action="store_true", help="build with is_platform_alibaba=True"
717 )
718 parser.add_argument(
719 "--target_cpu_arch",
720 required=False,
721 default="",
722 help="Specify the target architecture.",
723 )
724 add_arguments_platform_alibaba(parser)
725
726def disc_conf_file(root):
727 return os.path.join(root, "scripts", "ci", ".disc_conf")

Callers 2

parse_argsFunction · 0.90
parse_argsFunction · 0.70

Calls 1

Tested by

no test coverage detected