Skip to content

Commit

Permalink
Actually put mismatched kernels in the directory created
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Sep 12, 2024
1 parent 8d0f319 commit e8f0859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def check_source_hashes(compiler, jitmodule, extension, comm):
if matching != hashval:
# Dump all src code to disk for debugging
output = Path(configuration["cache_dir"]).joinpath("mismatching-kernels")
srcfile = output.with_name(f"src-rank{icomm.rank}.{extension}")
srcfile = output.joinpath(f"src-rank{icomm.rank}.{extension}")
if icomm.rank == 0:
output.mkdir(exist_ok=True)
icomm.barrier()
Expand Down

0 comments on commit e8f0859

Please sign in to comment.