MCPcopy
hub / github.com/dmlc/dgl / main

Function main

tools/dispatch_data.py:93–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def main():
94 parser = argparse.ArgumentParser(
95 description="Dispatch edge index and data to partitions",
96 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
97 )
98
99 parser.add_argument(
100 "--in-dir",
101 type=str,
102 help="Location of the input directory where the dataset is located",
103 )
104 parser.add_argument(
105 "--metadata-filename",
106 type=str,
107 default="metadata.json",
108 help="Filename for the metadata JSON file that describes the dataset to be dispatched.",
109 )
110 parser.add_argument(
111 "--partitions-dir",
112 type=str,
113 help="Location of the partition-id mapping files which define node-ids and their respective partition-ids, relative to the input directory",
114 )
115 parser.add_argument(
116 "--out-dir",
117 type=str,
118 help="Location of the output directory where the graph partitions will be created by this pipeline",
119 )
120 parser.add_argument(
121 "--ip-config",
122 type=str,
123 help="File location of IP configuration for server processes",
124 )
125 parser.add_argument(
126 "--master-port",
127 type=int,
128 default=12345,
129 help="port used by gloo group to create randezvous point",
130 )
131 parser.add_argument(
132 "--log-level",
133 required=False,
134 type=str,
135 help="Log level to use for execution.",
136 default="INFO",
137 choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"],
138 )
139 parser.add_argument(
140 "--python-path",
141 type=str,
142 default=sys.executable,
143 help="Path to the Python executable on all workers",
144 )
145 parser.add_argument("--ssh-port", type=int, default=22, help="SSH Port.")
146 parser.add_argument(
147 "--process-group-timeout",
148 type=int,
149 default=1800,
150 help="timeout[seconds] for operations executed against the process group",

Callers 1

dispatch_data.pyFile · 0.70

Calls 1

submit_jobsFunction · 0.70

Tested by

no test coverage detected