mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Compare commits
2 Commits
595a4ad206
...
753c6a4d0f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
753c6a4d0f | ||
|
|
d3a754c8aa |
@@ -106,6 +106,8 @@ class IPConfigurator:
|
|||||||
for src_port, p in enumerate(h.ports):
|
for src_port, p in enumerate(h.ports):
|
||||||
if not p.connected_to:
|
if not p.connected_to:
|
||||||
continue
|
continue
|
||||||
|
if p.connected_to not in uuid_reverse_index:
|
||||||
|
continue
|
||||||
if (src_node, src_port) in assigned:
|
if (src_node, src_port) in assigned:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@@ -241,7 +243,7 @@ def make_connectivity_matrix(tb_hosts, uuid_reverse_index):
|
|||||||
for i, h in enumerate(tb_hosts):
|
for i, h in enumerate(tb_hosts):
|
||||||
c = [0] * len(tb_hosts)
|
c = [0] * len(tb_hosts)
|
||||||
for p in h.ports:
|
for p in h.ports:
|
||||||
if p.connected_to is not None:
|
if p.connected_to in uuid_reverse_index:
|
||||||
j, _ = uuid_reverse_index[p.connected_to]
|
j, _ = uuid_reverse_index[p.connected_to]
|
||||||
c[j] += 1
|
c[j] += 1
|
||||||
connectivity.append(c)
|
connectivity.append(c)
|
||||||
|
|||||||
@@ -107,6 +107,9 @@ class RemoteProcess(CommandProcess):
|
|||||||
def make_launch_script(rank, cwd, files, env, command):
|
def make_launch_script(rank, cwd, files, env, command):
|
||||||
script = ""
|
script = ""
|
||||||
|
|
||||||
|
# Disable echo
|
||||||
|
script = "stty -echo; "
|
||||||
|
|
||||||
# Write the PID to a file so we can kill the process if needed
|
# Write the PID to a file so we can kill the process if needed
|
||||||
script += "pidfile=$(mktemp); "
|
script += "pidfile=$(mktemp); "
|
||||||
script += "echo $$ > $pidfile; "
|
script += "echo $$ > $pidfile; "
|
||||||
|
|||||||
Reference in New Issue
Block a user