Skip to content

Commit 462fc00

Browse files
authored
Set MAX_JOBS=4 for tritonbench build to avoid OOM (#376)
1 parent 83f3253 commit 462fc00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

benchmarks/run.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,15 @@ def check_and_setup_tritonbench() -> None:
160160
f"Running install.py {install_flag} (detected {memory_gb:.1f}GB system RAM)...",
161161
file=sys.stderr,
162162
)
163+
env = os.environ.copy()
164+
if install_flag == "--all":
165+
# Set max jobs to 4 to avoid OOM
166+
env["MAX_JOBS"] = "4"
163167
subprocess.run(
164168
[sys.executable, "install.py", install_flag],
165169
cwd=tritonbench_path,
166170
check=True,
171+
env=env,
167172
)
168173

169174
# Install tritonbench package

0 commit comments

Comments
 (0)