Skip to content

Commit

Permalink
fixed runners and merge multi-file with new runners
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang13 committed Jan 15, 2025
1 parent 6a30fb7 commit f3d456d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@

if config["lang"] == "cu":
comp, run = run_cuda_script(
config.get("eval.cu", cu_eval),
config.get("reference.cuh", None),
config.get("submission.cuh", None),
{
"eval.cu": config.get("eval.cu", cu_eval),
"reference.cuh": config.get("reference.cuh", None),
"submission.cuh": config.get("submission.cuh", None),
},
arch=None,
)
result = {"compile": asdict(comp), "run": asdict(run)}
else:
run = run_pytorch_script(
config.get("eval.py", py_eval),
config.get("reference.py", None),
config.get("submission.py", None),
{
"eval.py": config.get("eval.py", py_eval),
"reference.py": config.get("reference.py", None),
"submission.py": config.get("submission.py", None),
},
arch=None,
)
result = {"run": asdict(run)}
Expand Down
2 changes: 1 addition & 1 deletion src/discord-cluster-manager/run_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def run_cuda_script( # # noqa: C901

run_result = run_program(["./eval.out"])
return compile_result, run_result

# cleaning up all source files _before_ we let the user code run, just in
# case there's something in there that the user isn't supposed to snoop
finally:
Expand Down

0 comments on commit f3d456d

Please sign in to comment.