Skip to content

Commit

Permalink
repro tingrad compile crash
Browse files Browse the repository at this point in the history
  • Loading branch information
haraschax committed Sep 25, 2024
1 parent 6e49d9d commit 4eaae4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions repro.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

while :
do
rm selfdrive/modeld/models/supercombo_tinygrad.pkl
./system/manager/build.py
done

2 changes: 1 addition & 1 deletion system/manager/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def build(spinner: Spinner, dirty: bool = False, minimal: bool = False) -> None:
compile_output: list[bytes] = []
for n in (nproc, nproc/2, 1):
compile_output.clear()
scons: subprocess.Popen = subprocess.Popen(["scons", f"-j{int(n)}", "--cache-populate", *extra_args], cwd=BASEDIR, env=env, stderr=subprocess.PIPE)
scons: subprocess.Popen = subprocess.Popen(["scons", f"-j{int(n)}", "--cache-disable", "--cache-populate", *extra_args], cwd=BASEDIR, env=env, stderr=subprocess.PIPE)
assert scons.stderr is not None

# Read progress from stderr and update spinner
Expand Down

0 comments on commit 4eaae4b

Please sign in to comment.