From 922cbf3fe945df8206a92f85e8d661aa15039754 Mon Sep 17 00:00:00 2001 From: Jack Betteridge Date: Sun, 1 Sep 2024 19:37:12 +0100 Subject: [PATCH] Actually put mismatched kernels in the directory created --- pyop2/compilation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyop2/compilation.py b/pyop2/compilation.py index 86db95b9e..9fb654d9c 100644 --- a/pyop2/compilation.py +++ b/pyop2/compilation.py @@ -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()