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):
|
||||
if not p.connected_to:
|
||||
continue
|
||||
if p.connected_to not in uuid_reverse_index:
|
||||
continue
|
||||
if (src_node, src_port) in assigned:
|
||||
continue
|
||||
|
||||
@@ -241,7 +243,7 @@ def make_connectivity_matrix(tb_hosts, uuid_reverse_index):
|
||||
for i, h in enumerate(tb_hosts):
|
||||
c = [0] * len(tb_hosts)
|
||||
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]
|
||||
c[j] += 1
|
||||
connectivity.append(c)
|
||||
|
||||
@@ -107,6 +107,9 @@ class RemoteProcess(CommandProcess):
|
||||
def make_launch_script(rank, cwd, files, env, command):
|
||||
script = ""
|
||||
|
||||
# Disable echo
|
||||
script = "stty -echo; "
|
||||
|
||||
# Write the PID to a file so we can kill the process if needed
|
||||
script += "pidfile=$(mktemp); "
|
||||
script += "echo $$ > $pidfile; "
|
||||
|
||||
Reference in New Issue
Block a user