mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-07 03:00:26 -04:00
restore process replay runs by their id (#5453)
This commit is contained in:
@@ -5,7 +5,7 @@ from tinygrad.codegen.kernel import Kernel
|
||||
from tinygrad.helpers import Context, ContextVar, colored, db_connection, VERSION, getenv, tqdm
|
||||
|
||||
page_size = 100
|
||||
table_name = f"process_replay_{getenv('GITHUB_SHA', 'HEAD')}_{VERSION}"
|
||||
table_name = f"process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{VERSION}"
|
||||
|
||||
def process_replay(offset:int):
|
||||
conn = db_connection()
|
||||
|
||||
2
test/external/process_replay/reset.py
vendored
2
test/external/process_replay/reset.py
vendored
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
from tinygrad.helpers import db_connection, VERSION, getenv
|
||||
cur = db_connection()
|
||||
cur.execute(f"drop table if exists process_replay_{getenv('GITHUB_SHA', 'HEAD')}_{VERSION}")
|
||||
cur.execute(f"drop table if exists process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{VERSION}")
|
||||
|
||||
Reference in New Issue
Block a user