(self, target_file_name)
| 166 | |
| 167 | class TestMultipleWithGloo(unittest.TestCase): |
| 168 | def run_2cpu(self, target_file_name): |
| 169 | |
| 170 | cluster, pod = get_cluster_from_args([0, 1]) # tmp use. for getting trainer_nranks() |
| 171 | |
| 172 | procs = start_local_trainers_cpu( |
| 173 | cluster.trainers_endpoints(), |
| 174 | training_script=target_file_name, |
| 175 | training_script_args=[], |
| 176 | ) |
| 177 | |
| 178 | while True: |
| 179 | alive = watch_local_trainers(procs, cluster.trainers_nranks()) |
| 180 | |
| 181 | if not alive: |
| 182 | print("Local procs complete, POD info:{}".format(pod)) |
| 183 | break |
| 184 | time.sleep(3) |
nothing calls this directly
no test coverage detected