mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
chore: run extract_machine_info.py before running the benchmark target, fix missing MACHINE_NAME variable exception
This commit is contained in:
@@ -17,7 +17,7 @@ export LD_PRELOAD=/compiler/build/lib/Runtime/libZamalangRuntime.so
|
||||
initial_log=logs/$(date -u --iso-8601=seconds).log
|
||||
|
||||
mkdir -p logs
|
||||
make -s benchmark > "$initial_log"
|
||||
poetry run python script/progress_tracker_utils/measure.py benchmarks > "$initial_log"
|
||||
|
||||
final_log=logs/$(date -u --iso-8601=seconds).log
|
||||
|
||||
|
||||
@@ -30,9 +30,10 @@ def main():
|
||||
os_value = f"{platform.system()} {platform.release()}"
|
||||
properties.append(["OS", os_value])
|
||||
|
||||
name = os.getenv("MACHINE_NAME").strip()
|
||||
name = os.getenv("MACHINE_NAME")
|
||||
if name is None:
|
||||
name = platform.node().strip()
|
||||
name = platform.node()
|
||||
name = name.strip()
|
||||
|
||||
id_ = name.lower()
|
||||
id_ = id_.replace(" ", "-")
|
||||
|
||||
Reference in New Issue
Block a user