Skip to content

Commit f5c02ef

Browse files
committed
h
1 parent 4224042 commit f5c02ef

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/libkernelbot/run_eval.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ def run_program(
287287

288288

289289
def run_single_evaluation(
290-
system: SystemInfo,
291290
call: list[str],
292291
mode: str,
293292
*,
@@ -386,7 +385,6 @@ def make_system_info() -> SystemInfo: # noqa: C901
386385

387386

388387
def run_cuda_script( # # noqa: C901
389-
system: SystemInfo,
390388
sources: dict[str, str],
391389
headers: Optional[dict[str, str]] = None,
392390
arch: Optional[int] = None,
@@ -446,7 +444,7 @@ def run_cuda_script( # # noqa: C901
446444
if os.path.exists(f):
447445
os.remove(f)
448446

449-
run_result = run_single_evaluation(system, ["./eval.out"], **kwargs)
447+
run_result = run_single_evaluation(["./eval.out"], **kwargs)
450448
return EvalResult(
451449
start=start,
452450
end=datetime.datetime.now(),
@@ -456,7 +454,6 @@ def run_cuda_script( # # noqa: C901
456454

457455

458456
def run_pytorch_script( # noqa: C901
459-
system: SystemInfo,
460457
sources: dict[str, str],
461458
main: str,
462459
**kwargs,
@@ -508,7 +505,7 @@ def run_pytorch_script( # noqa: C901
508505
exit_code=e.returncode,
509506
)
510507

511-
run = run_single_evaluation(system, ["python", main], **kwargs)
508+
run = run_single_evaluation(["python", main], **kwargs)
512509

513510
return EvalResult(
514511
start=start,
@@ -573,7 +570,6 @@ def build_test_string(tests: list[dict]):
573570
def run_config(config: dict):
574571
system = make_system_info()
575572
common_args = {
576-
"system": system,
577573
"tests": build_test_string(config.get("tests", [])),
578574
"benchmarks": build_test_string(config.get("benchmarks", [])),
579575
"seed": config.get("seed", None),

0 commit comments

Comments
 (0)