ShayManor commited on
Commit
cbd63ed
·
verified ·
1 Parent(s): c5e81ff

results: jobs/20261006-203943-pure-pursuit/** index/episodes.jsonl leaderboard/*

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. results/index/episodes.jsonl +0 -0
  3. results/jobs/20261006-203943-pure-pursuit/breakdown.json +0 -0
  4. results/jobs/20261006-203943-pure-pursuit/episodes.jsonl +3 -0
  5. results/jobs/20261006-203943-pure-pursuit/gautschi/0/done.txt +0 -0
  6. results/jobs/20261006-203943-pure-pursuit/gautschi/0/episodes.json +0 -0
  7. results/jobs/20261006-203943-pure-pursuit/gautschi/0/gautschi_launch.py +143 -0
  8. results/jobs/20261006-203943-pure-pursuit/gautschi/0/sbatch.sh +5 -0
  9. results/jobs/20261006-203943-pure-pursuit/gautschi/1/done.txt +0 -0
  10. results/jobs/20261006-203943-pure-pursuit/gautschi/1/episodes.json +0 -0
  11. results/jobs/20261006-203943-pure-pursuit/gautschi/1/gautschi_launch.py +143 -0
  12. results/jobs/20261006-203943-pure-pursuit/gautschi/1/sbatch.sh +5 -0
  13. results/jobs/20261006-203943-pure-pursuit/job.json +37 -0
  14. results/jobs/20261006-203943-pure-pursuit/logs/shard-0000.jsonl.gz +3 -0
  15. results/jobs/20261006-203943-pure-pursuit/logs/shard-0001.jsonl.gz +3 -0
  16. results/jobs/20261006-203943-pure-pursuit/logs/shard-0002.jsonl.gz +3 -0
  17. results/jobs/20261006-203943-pure-pursuit/logs/shard-0003.jsonl.gz +3 -0
  18. results/jobs/20261006-203943-pure-pursuit/logs/shard-0004.jsonl.gz +3 -0
  19. results/jobs/20261006-203943-pure-pursuit/logs/shard-0005.jsonl.gz +3 -0
  20. results/jobs/20261006-203943-pure-pursuit/logs/shard-0006.jsonl.gz +3 -0
  21. results/jobs/20261006-203943-pure-pursuit/logs/shard-0007.jsonl.gz +3 -0
  22. results/jobs/20261006-203943-pure-pursuit/logs/shard-0008.jsonl.gz +3 -0
  23. results/jobs/20261006-203943-pure-pursuit/logs/shard-0009.jsonl.gz +3 -0
  24. results/jobs/20261006-203943-pure-pursuit/logs/shard-0010.jsonl.gz +3 -0
  25. results/jobs/20261006-203943-pure-pursuit/logs/shard-0011.jsonl.gz +3 -0
  26. results/jobs/20261006-203943-pure-pursuit/logs/shard-0012.jsonl.gz +3 -0
  27. results/jobs/20261006-203943-pure-pursuit/logs/shard-0013.jsonl.gz +3 -0
  28. results/jobs/20261006-203943-pure-pursuit/logs/shard-0014.jsonl.gz +3 -0
  29. results/jobs/20261006-203943-pure-pursuit/logs/shard-0015.jsonl.gz +3 -0
  30. results/jobs/20261006-203943-pure-pursuit/logs/shard-0016.jsonl.gz +3 -0
  31. results/jobs/20261006-203943-pure-pursuit/logs/shard-0017.jsonl.gz +3 -0
  32. results/jobs/20261006-203943-pure-pursuit/logs/shard-0018.jsonl.gz +3 -0
  33. results/jobs/20261006-203943-pure-pursuit/logs/shard-0019.jsonl.gz +3 -0
  34. results/jobs/20261006-203943-pure-pursuit/logs/shard-0020.jsonl.gz +3 -0
  35. results/jobs/20261006-203943-pure-pursuit/logs/shard-0021.jsonl.gz +3 -0
  36. results/jobs/20261006-203943-pure-pursuit/logs/shard-0022.jsonl.gz +3 -0
  37. results/jobs/20261006-203943-pure-pursuit/logs/shard-0023.jsonl.gz +3 -0
  38. results/jobs/20261006-203943-pure-pursuit/logs/shard-0024.jsonl.gz +3 -0
  39. results/jobs/20261006-203943-pure-pursuit/logs/shard-0025.jsonl.gz +3 -0
  40. results/jobs/20261006-203943-pure-pursuit/logs/shard-0026.jsonl.gz +3 -0
  41. results/jobs/20261006-203943-pure-pursuit/logs/shard-0027.jsonl.gz +3 -0
  42. results/jobs/20261006-203943-pure-pursuit/logs/shard-0028.jsonl.gz +3 -0
  43. results/jobs/20261006-203943-pure-pursuit/logs/shard-0029.jsonl.gz +3 -0
  44. results/jobs/20261006-203943-pure-pursuit/logs/shard-0030.jsonl.gz +3 -0
  45. results/jobs/20261006-203943-pure-pursuit/logs/shard-0031.jsonl.gz +3 -0
  46. results/jobs/20261006-203943-pure-pursuit/logs/shard-0032.jsonl.gz +3 -0
  47. results/jobs/20261006-203943-pure-pursuit/logs/shard-0033.jsonl.gz +3 -0
  48. results/jobs/20261006-203943-pure-pursuit/logs/shard-0034.jsonl.gz +3 -0
  49. results/jobs/20261006-203943-pure-pursuit/logs/shard-0035.jsonl.gz +3 -0
  50. results/jobs/20261006-203943-pure-pursuit/logs/shard-0036.jsonl.gz +3 -0
.gitattributes CHANGED
@@ -59,3 +59,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
  results/jobs/20261006-100132-pure-pursuit/episodes.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
  results/jobs/20261006-100132-pure-pursuit/episodes.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ results/jobs/20261006-203943-pure-pursuit/episodes.jsonl filter=lfs diff=lfs merge=lfs -text
results/index/episodes.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261006-203943-pure-pursuit/breakdown.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261006-203943-pure-pursuit/episodes.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eacc03069680a3120b8796fe5bce9bcaa0b9e40ae0a08a3890398a40e544cce1
3
+ size 69466877
results/jobs/20261006-203943-pure-pursuit/gautschi/0/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261006-203943-pure-pursuit/gautschi/0/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261006-203943-pure-pursuit/gautschi/0/gautschi_launch.py ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
24
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
25
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
26
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
27
+
28
+
29
+ def parse_smi(text):
30
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
31
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
32
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
33
+
34
+
35
+ def _solver(logdir):
36
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
37
+ lines = []
38
+ for dp, _, fns in os.walk(logdir):
39
+ for fn in fns:
40
+ try:
41
+ with open(os.path.join(dp, fn), errors="replace") as f:
42
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
43
+ except OSError:
44
+ pass
45
+ return "\n".join(dict.fromkeys(lines))
46
+
47
+
48
+ def main(argv=None):
49
+ p = argparse.ArgumentParser()
50
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
51
+ p.add_argument("--" + a, required=True)
52
+ p.add_argument("--workers", type=int, required=True)
53
+ p.add_argument("--gpus", type=int, default=0)
54
+ a = p.parse_args(argv)
55
+ with open(a.episodes) as f:
56
+ q = queue.Queue()
57
+ for e in json.load(f): # the host already ordered them, longest first
58
+ q.put(e)
59
+ os.makedirs(a.out, exist_ok=True)
60
+ lock, t0 = threading.Lock(), time.time()
61
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
62
+
63
+ def log(**ev):
64
+ with lock, open(a.timeline, "a") as f:
65
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
66
+
67
+ def worker(i):
68
+ time.sleep(i * STAGGER_S)
69
+ while True:
70
+ try:
71
+ e = q.get_nowait()
72
+ except queue.Empty:
73
+ return
74
+ key, work = e["key"], os.path.join(a.work, e["key"])
75
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
76
+ os.makedirs(stage)
77
+ with open(ep, "w") as f:
78
+ json.dump([e], f)
79
+ log(ev="start", key=key, worker=i)
80
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
81
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
82
+ try:
83
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
84
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
85
+ except subprocess.TimeoutExpired:
86
+ rc = "timeout"
87
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
88
+ if solver and os.path.isdir(os.path.join(stage, key)):
89
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
90
+ f.write(solver + "\n")
91
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
92
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
93
+ shutil.rmtree(tmp, ignore_errors=True)
94
+ shutil.copytree(os.path.join(stage, key), tmp)
95
+ shutil.rmtree(dst, ignore_errors=True)
96
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
97
+ with lock, open(a.done, "a") as f:
98
+ f.write(key + "\n")
99
+ shutil.rmtree(work, ignore_errors=True)
100
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
101
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
102
+
103
+ def sampler(stop):
104
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
105
+ try:
106
+ with open("/proc/self/cgroup") as f:
107
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
108
+ prev = None
109
+ while not stop.wait(SAMPLE_S if prev else 0):
110
+ with open(path) as f:
111
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
112
+ now = time.time()
113
+ if prev:
114
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
115
+ prev = (use, now)
116
+ except (OSError, StopIteration, ValueError):
117
+ pass
118
+
119
+ def gpu_sampler(stop):
120
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
121
+ while not stop.wait(SAMPLE_S):
122
+ try:
123
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
124
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
125
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
126
+ except Exception: # no driver or a hung query: skip this sample
127
+ pass
128
+
129
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
130
+ log(ev="launch", workers=a.workers, cores=cores)
131
+ stop = threading.Event()
132
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
133
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
134
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
135
+ t.start()
136
+ for t in threads:
137
+ t.join()
138
+ stop.set()
139
+ log(ev="done")
140
+
141
+
142
+ if __name__ == "__main__":
143
+ main()
results/jobs/20261006-203943-pure-pursuit/gautschi/0/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 86 -J AutoSim-large-pure-pursuit-1 --comment 20261006-203943-pure-pursuit -o AutoSim/jobs/20261006-203943-pure-pursuit/0/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/0/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/0/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261006-203943-pure-pursuit --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/7c23fecc8b44bf60ed57bd3279be7b1bb237d3d2d4f0868bef856ffbde4092ae --stack $HOME/AutoSim/stacks/81dde8e4b2839f17deb71b563f489f8754e1fe4f561790f0fdc69e0bd1ec783f --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/0/timeline.jsonl --done $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/0/done.txt
results/jobs/20261006-203943-pure-pursuit/gautschi/1/done.txt ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261006-203943-pure-pursuit/gautschi/1/episodes.json ADDED
The diff for this file is too large to render. See raw diff
 
results/jobs/20261006-203943-pure-pursuit/gautschi/1/gautschi_launch.py ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Runs on a Gautschi node (stdlib only): episodes from a queue in parallel workers, one contained Apptainer per episode."""
2
+ import argparse
3
+ import json
4
+ import os
5
+ import queue
6
+ import shutil
7
+ import subprocess
8
+ import threading
9
+ import time
10
+
11
+ RUN = ("source /opt/ros/humble/setup.bash && source /ws/install/setup.bash"
12
+ " && python3 -m simnode.batch /batch.json /out")
13
+ CUDA_LIB = "/ws/mpc_cuda/libmpc_cuda.so" # built per stack by runner/gautschi.build_stack for gautschi-gpu
14
+ SAMPLE_S = 15
15
+ STAGGER_S = 0.25 # between worker starts: the dev job's one error was a stack starved in the 96-way start burst
16
+ EPISODE_TIMEOUT_S = 1200 # about 4x the slowest lap; a killed episode has no outcome and is retried by the host
17
+
18
+
19
+ def worker_cmd(i, work, out, ep, sif, engine, stack, gpu=None):
20
+ """Private /tmp, HOME, /dev/shm, IPC, PIDs and loopback per episode, plus a distinct ROS_DOMAIN_ID per worker;
21
+ gpu (a host CUDA device) adds the driver and the stack's CUDA MPC kernel."""
22
+ cuda = ["--nv", "--env", f"CUDA_VISIBLE_DEVICES={gpu}", "--env", f"MPC_CUDA_LIB={CUDA_LIB}"] if gpu is not None else []
23
+ return ["apptainer", "exec", *cuda, "--contain", "--cleanenv", "--ipc", "--pid", "--net", "--network", "none", "--workdir", work,
24
+ "--env", f"ROS_DOMAIN_ID={i + 1}", "--env", "ROS_HOME=/tmp/ros", "--env", "TMPDIR=/tmp",
25
+ "--bind", f"{engine}:/opt/sim:ro", "--bind", f"{stack}:/ws:ro", "--bind", f"{out}:/out",
26
+ "--bind", f"{ep}:/batch.json:ro", sif, "bash", "-lc", RUN]
27
+
28
+
29
+ def parse_smi(text):
30
+ """nvidia-smi 'utilization.gpu, memory.used' csv rows to per-GPU lists."""
31
+ rows = [[int(v) for v in ln.split(",")] for ln in text.strip().splitlines() if ln.strip()]
32
+ return {"gpu_util": [r[0] for r in rows], "gpu_mem_mib": [r[1] for r in rows]}
33
+
34
+
35
+ def _solver(logdir):
36
+ """pathfinder's 'MPC solver: ...' and CUDA fallback lines from the episode's ROS logs."""
37
+ lines = []
38
+ for dp, _, fns in os.walk(logdir):
39
+ for fn in fns:
40
+ try:
41
+ with open(os.path.join(dp, fn), errors="replace") as f:
42
+ lines += [ln.strip() for ln in f if "MPC solver:" in ln or "CUDA MPC unavailable" in ln]
43
+ except OSError:
44
+ pass
45
+ return "\n".join(dict.fromkeys(lines))
46
+
47
+
48
+ def main(argv=None):
49
+ p = argparse.ArgumentParser()
50
+ for a in ("episodes", "out", "sif", "engine", "stack", "work", "timeline", "done"):
51
+ p.add_argument("--" + a, required=True)
52
+ p.add_argument("--workers", type=int, required=True)
53
+ p.add_argument("--gpus", type=int, default=0)
54
+ a = p.parse_args(argv)
55
+ with open(a.episodes) as f:
56
+ q = queue.Queue()
57
+ for e in json.load(f): # the host already ordered them, longest first
58
+ q.put(e)
59
+ os.makedirs(a.out, exist_ok=True)
60
+ lock, t0 = threading.Lock(), time.time()
61
+ devs = [d for d in os.environ.get("CUDA_VISIBLE_DEVICES", "").split(",") if d][:a.gpus] or [str(n) for n in range(a.gpus)]
62
+
63
+ def log(**ev):
64
+ with lock, open(a.timeline, "a") as f:
65
+ f.write(json.dumps(dict(ev, t=round(time.time() - t0, 3))) + "\n")
66
+
67
+ def worker(i):
68
+ time.sleep(i * STAGGER_S)
69
+ while True:
70
+ try:
71
+ e = q.get_nowait()
72
+ except queue.Empty:
73
+ return
74
+ key, work = e["key"], os.path.join(a.work, e["key"])
75
+ stage, ep = os.path.join(work, "stage"), os.path.join(work, "ep.json")
76
+ os.makedirs(stage)
77
+ with open(ep, "w") as f:
78
+ json.dump([e], f)
79
+ log(ev="start", key=key, worker=i)
80
+ gpu = devs[i % len(devs)] if devs and e["resolved"].get("recipe", {}).get("sim", {}).get("cuda") else None
81
+ limit = EPISODE_TIMEOUT_S * max(1, e["resolved"]["scenario"].get("laps", 1)) # per lap: 5-lap episodes run 5x longer
82
+ try:
83
+ rc = subprocess.run(worker_cmd(i, work, stage, ep, a.sif, a.engine, a.stack, gpu), stdout=subprocess.DEVNULL,
84
+ stderr=subprocess.DEVNULL, timeout=limit).returncode
85
+ except subprocess.TimeoutExpired:
86
+ rc = "timeout"
87
+ solver = _solver(os.path.join(work, "tmp", "ros", "log"))
88
+ if solver and os.path.isdir(os.path.join(stage, key)):
89
+ with open(os.path.join(stage, key, "solver.txt"), "w") as f:
90
+ f.write(solver + "\n")
91
+ if os.path.exists(os.path.join(stage, key, "outcome.json")):
92
+ tmp, dst = os.path.join(a.out, ".tmp-" + key), os.path.join(a.out, key)
93
+ shutil.rmtree(tmp, ignore_errors=True)
94
+ shutil.copytree(os.path.join(stage, key), tmp)
95
+ shutil.rmtree(dst, ignore_errors=True)
96
+ os.rename(tmp, dst) # the host's rsync sees a key only once its directory is complete
97
+ with lock, open(a.done, "a") as f:
98
+ f.write(key + "\n")
99
+ shutil.rmtree(work, ignore_errors=True)
100
+ log(ev="end", key=key, worker=i, rc=rc, gpu=gpu,
101
+ solver=solver.split("MPC solver: ")[-1] if "MPC solver: " in solver else solver or None)
102
+
103
+ def sampler(stop):
104
+ """Job CPU use from its cgroup, as busy cores, every SAMPLE_S."""
105
+ try:
106
+ with open("/proc/self/cgroup") as f:
107
+ path = "/sys/fs/cgroup" + f.read().strip().split(":")[-1] + "/cpu.stat"
108
+ prev = None
109
+ while not stop.wait(SAMPLE_S if prev else 0):
110
+ with open(path) as f:
111
+ use = next(int(ln.split()[1]) for ln in f if ln.startswith("usage_usec"))
112
+ now = time.time()
113
+ if prev:
114
+ log(ev="cpu", busy_cores=round((use - prev[0]) / 1e6 / (now - prev[1]), 2))
115
+ prev = (use, now)
116
+ except (OSError, StopIteration, ValueError):
117
+ pass
118
+
119
+ def gpu_sampler(stop):
120
+ """GPU utilisation and memory of the job's GPUs, every SAMPLE_S."""
121
+ while not stop.wait(SAMPLE_S):
122
+ try:
123
+ p = subprocess.Popen(["nvidia-smi", "--query-gpu=utilization.gpu,memory.used", "--format=csv,noheader,nounits"],
124
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
125
+ log(ev="gpu", **parse_smi(p.communicate(timeout=30)[0]))
126
+ except Exception: # no driver or a hung query: skip this sample
127
+ pass
128
+
129
+ cores = len(os.sched_getaffinity(0)) if hasattr(os, "sched_getaffinity") else os.cpu_count()
130
+ log(ev="launch", workers=a.workers, cores=cores)
131
+ stop = threading.Event()
132
+ threads = [threading.Thread(target=worker, args=(i,)) for i in range(a.workers)]
133
+ samplers = [sampler] + ([gpu_sampler] if a.gpus else [])
134
+ for t in threads + [threading.Thread(target=f, args=(stop,), daemon=True) for f in samplers]:
135
+ t.start()
136
+ for t in threads:
137
+ t.join()
138
+ stop.set()
139
+ log(ev="done")
140
+
141
+
142
+ if __name__ == "__main__":
143
+ main()
results/jobs/20261006-203943-pure-pursuit/gautschi/1/sbatch.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH -p highmem -A lilly-rob1 -N 1 -n 1 -c 192 --time 86 -J AutoSim-large-pure-pursuit-2 --comment 20261006-203943-pure-pursuit -o AutoSim/jobs/20261006-203943-pure-pursuit/1/slurm-%j.out
3
+ W=/dev/shm/AutoSim-$SLURM_JOB_ID
4
+ trap 'rm -rf "$W"' EXIT
5
+ python3 $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/1/gautschi_launch.py --episodes $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/1/episodes.json --out /scratch/gautschi/manors/AutoSim/out/20261006-203943-pure-pursuit --sif $HOME/AutoSim/images/AutoSim-99d206f40cb1.sif --engine $HOME/AutoSim/engine/7c23fecc8b44bf60ed57bd3279be7b1bb237d3d2d4f0868bef856ffbde4092ae --stack $HOME/AutoSim/stacks/81dde8e4b2839f17deb71b563f489f8754e1fe4f561790f0fdc69e0bd1ec783f --workers 96 --work $W --timeline $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/1/timeline.jsonl --done $HOME/AutoSim/jobs/20261006-203943-pure-pursuit/1/done.txt
results/jobs/20261006-203943-pure-pursuit/job.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "20261006-203943-pure-pursuit",
3
+ "tier": "large",
4
+ "tier_version": 1,
5
+ "recipe": {
6
+ "name": "pure-pursuit",
7
+ "source": {
8
+ "repo": "AutonomousKart",
9
+ "ref": "worktree:AutonomousKart-sim"
10
+ },
11
+ "params": {
12
+ "pathfinder_node": {
13
+ "planner": "pure_pursuit",
14
+ "mpc.num_samples": 128
15
+ }
16
+ },
17
+ "notes": "Pure pursuit, fixed motor noise + ghost, steering high 50 deg/s"
18
+ },
19
+ "user": "overnight",
20
+ "notes": "Pure pursuit, fixed motor noise + ghost, steering high 50 deg/s",
21
+ "where": "gautschi",
22
+ "status": "done",
23
+ "submitted_at": "2026-10-07T00:39:43.054+00:00",
24
+ "started_at": "2026-10-07T00:39:44.777+00:00",
25
+ "finished_at": "2026-10-07T02:21:02.291+00:00",
26
+ "total": 10692,
27
+ "done": 10692,
28
+ "errors": 0,
29
+ "build_log": null,
30
+ "workers": 96,
31
+ "slurm_id": "16888902",
32
+ "slurm_ids": [
33
+ "16888902",
34
+ "16888903"
35
+ ],
36
+ "engine_version": "7c23fecc8b44bf60ed57bd3279be7b1bb237d3d2d4f0868bef856ffbde4092ae"
37
+ }
results/jobs/20261006-203943-pure-pursuit/logs/shard-0000.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a44b3dff1e3654b71015ab179136dd1fed351e43ba3e44349c10eee35a6eaab2
3
+ size 19786489
results/jobs/20261006-203943-pure-pursuit/logs/shard-0001.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c13f67781b00c40679cc866bb63f67fab58fe3dc925b470ee73e7946d68786cb
3
+ size 23764271
results/jobs/20261006-203943-pure-pursuit/logs/shard-0002.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57e2717c03ab4a56f4507ab5fe2f38a03402c49ac9480b8edca09feb18463526
3
+ size 14784363
results/jobs/20261006-203943-pure-pursuit/logs/shard-0003.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:779184a22a9845632ed4bb5f6246530a9f919ffba54d7388b1e243eabcdb23df
3
+ size 16751737
results/jobs/20261006-203943-pure-pursuit/logs/shard-0004.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fb56983e727d9980b7e9149bb908c7d36e872be8d477872c780db1a1ce22dd1
3
+ size 9596399
results/jobs/20261006-203943-pure-pursuit/logs/shard-0005.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7a22c2828161bac87b77be8f4bd04763c86d7ec809aafa58c2263540d1cc58c
3
+ size 11776883
results/jobs/20261006-203943-pure-pursuit/logs/shard-0006.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3535566e6de38d1337f941165ce7a22f2392f25ba0f2011cfd3da483ce4a10a3
3
+ size 9814115
results/jobs/20261006-203943-pure-pursuit/logs/shard-0007.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:901321d93b63e5f6168c6314e9e62fa7f59155b159565174a35b6b45a0ba96fc
3
+ size 7839531
results/jobs/20261006-203943-pure-pursuit/logs/shard-0008.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fc421884370f00921b337bed07512111ad66664bc3e46e8d995df83893ca6d4
3
+ size 10273384
results/jobs/20261006-203943-pure-pursuit/logs/shard-0009.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a15d8a1e93a8ed7cc467c3cfa6a9c7a81c68716a6274516e9c3989667abafb93
3
+ size 13165182
results/jobs/20261006-203943-pure-pursuit/logs/shard-0010.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdff120acc9fbc388f637e3ae8e875bc62dd05d2fdecb3f52ebe4b350e6079ed
3
+ size 9989561
results/jobs/20261006-203943-pure-pursuit/logs/shard-0011.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a754a2f26de4e8096530922fdcf13276ee1cac4123f8b33809b054804e1387c
3
+ size 10724704
results/jobs/20261006-203943-pure-pursuit/logs/shard-0012.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c01ef5e92cd18c4cc315df11e3a6c29e9ebf25198fe6983bddef084ced36807a
3
+ size 5667094
results/jobs/20261006-203943-pure-pursuit/logs/shard-0013.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1caf4ebe27aa394b6136995b627d532e7e57fcfa68239bd3a07ca9d18978d704
3
+ size 5022074
results/jobs/20261006-203943-pure-pursuit/logs/shard-0014.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef7311108f782c434963a9f174978b00f08a08e874b9978bd30694869a08ca5c
3
+ size 9115227
results/jobs/20261006-203943-pure-pursuit/logs/shard-0015.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffc48118324bf685a9143e57731dedbba498f492846d7fb76aa1bd29993ab41b
3
+ size 7123840
results/jobs/20261006-203943-pure-pursuit/logs/shard-0016.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06ca0672cc94e49da69eebc3779c11ee09144715996fd707c7b02be280ddc496
3
+ size 6567750
results/jobs/20261006-203943-pure-pursuit/logs/shard-0017.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d41f249793f5b27bc0b40976f8a80d58b578e5b0c3cfd4774ec6ef8449f13cb3
3
+ size 11329589
results/jobs/20261006-203943-pure-pursuit/logs/shard-0018.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba2d5b8f453429728e031d9d5ec6fe01710def80b334827a168af0582882ac4f
3
+ size 6393677
results/jobs/20261006-203943-pure-pursuit/logs/shard-0019.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f56e86ceedc50613b8ce3391fd3c95bba77ab65aa7d75dc50a0975487e97a7af
3
+ size 6039003
results/jobs/20261006-203943-pure-pursuit/logs/shard-0020.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9898e7fad19196458301b1cbb8e603f5378cd039e523ce6cd50c7ba44c0607ae
3
+ size 6620809
results/jobs/20261006-203943-pure-pursuit/logs/shard-0021.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea7f34f8699703134f2facb0f27920d518831c646cd2ca09889ce3a4bc2cdb97
3
+ size 6254426
results/jobs/20261006-203943-pure-pursuit/logs/shard-0022.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70b66f122d0c3d04836bf1f589581dbd5c4ba5429cffef072091566dd047c649
3
+ size 6410402
results/jobs/20261006-203943-pure-pursuit/logs/shard-0023.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f937aafb0203053f84590bc9f0b754d764329f6b26ef1c4ad047dfbe9c69be6
3
+ size 6484966
results/jobs/20261006-203943-pure-pursuit/logs/shard-0024.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4f11f8d51d15d8a009f4ff88990c2f060557abac571cca8988679df1a1f65a3
3
+ size 5823791
results/jobs/20261006-203943-pure-pursuit/logs/shard-0025.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6a67aab62aecfa5d51c0e24a9ddaf87753633ae4a94bb95a66597c4505a8593
3
+ size 5375277
results/jobs/20261006-203943-pure-pursuit/logs/shard-0026.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf5c29e3681bb082a18838a380437f2fd9e046abc02b3a4d4e843922e7442b66
3
+ size 7524543
results/jobs/20261006-203943-pure-pursuit/logs/shard-0027.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e76c86316be96a6bc76136951a38fc76fa3893893a6ebca34b4dd4be1cd95f57
3
+ size 6698497
results/jobs/20261006-203943-pure-pursuit/logs/shard-0028.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ac06a6b0f855e119ccc23baf523d5f8b66993cd85968ab32c86f5bfe21afa88
3
+ size 7858960
results/jobs/20261006-203943-pure-pursuit/logs/shard-0029.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f383d7fa0a143c25e8c458e52f09391ad4b236249fab283190f60ca379d7632
3
+ size 6560426
results/jobs/20261006-203943-pure-pursuit/logs/shard-0030.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58c7a99569b7e875651eee0b782a66190094b1ec3dd05590eaeb01f4f691cac9
3
+ size 5747970
results/jobs/20261006-203943-pure-pursuit/logs/shard-0031.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:babe24c396fadc94a6f776218339afb5cea24088e8218addbfa3c54a080530b9
3
+ size 6569295
results/jobs/20261006-203943-pure-pursuit/logs/shard-0032.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70dbbfd427273b4dcb8c1859522822033dd3c379774f49ea71ad2716a193e080
3
+ size 7803517
results/jobs/20261006-203943-pure-pursuit/logs/shard-0033.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3223db44f485e90510c66eb81d305896a1c28b2913d6d632b16b90f12c3328d0
3
+ size 6153051
results/jobs/20261006-203943-pure-pursuit/logs/shard-0034.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b5cb9264f1edd548c77960d834ec0d409d1f96a8137820502d80b74c78a7556
3
+ size 6010651
results/jobs/20261006-203943-pure-pursuit/logs/shard-0035.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98c39d81a24ebb0c76e60c42c62aa4c6e6e6ce792952916cad1863fd905b033f
3
+ size 8436868
results/jobs/20261006-203943-pure-pursuit/logs/shard-0036.jsonl.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:759bff491924f7743d4e8bfc3bf5ec2ae65f7beb8ac76ee393d536a3258500a8
3
+ size 6259841