cycle: create q1n1's build/a16-gpu before the first GPU step log

A fresh q1n1 checkout has no build/ tree, so the org1 boot was refused when
a16gpu() opened its first step log. The record directory is now created first.
This commit is contained in:
Acelogic committed 2026-10-24 00:38:34 -04:00
1 parent 353756d561
commit 58bc2aee86
1 file changed
+2
+2
View File
@@ -1793,6 +1793,8 @@ def a16gpu(ws, device, out, arguments, environment):
"""One a16gpu.py client; its record must not exist and must end unstopped."""
log = out.with_suffix('.log')
need(not out.exists() and not log.exists(), f'{out.name} already exists')
# q1n1's build/ is untracked, so a fresh checkout has no build/a16-gpu/ yet.
log.parent.mkdir(parents=True, exist_ok=True)
with log.open('x') as stream:
result = subprocess.run([sys.executable, 'tools/a16gpu.py', '--device', device, '--out', str(out), *arguments],
cwd=ws.q, env=environment, stdout=stream, stderr=subprocess.STDOUT)