Compare commits

...

2 Commits

Author SHA1 Message Date
Angelos Katharopoulos
753c6a4d0f Disable echo for interactive distributed 2025-12-11 17:47:42 -08:00
Angelos Katharopoulos
d3a754c8aa Fix config when more cables are connected 2025-12-10 02:14:29 -08:00
2 changed files with 6 additions and 1 deletions

View File

@@ -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)

View File

@@ -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; "