From ace7d287365c0f50456e8d76ab1f6ef554bfbb9d Mon Sep 17 00:00:00 2001 From: Crutcher Dunnavant Date: Thu, 24 Nov 2022 00:27:23 -0800 Subject: [PATCH] [Triton-MLIR][RUNTIME] Fix ir metadata lookup bug (#910) --- python/triton/compiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/triton/compiler.py b/python/triton/compiler.py index 82e8168aa..7eb30cb8e 100644 --- a/python/triton/compiler.py +++ b/python/triton/compiler.py @@ -1416,7 +1416,8 @@ def compile(fn, **kwargs): path = fn_cache_manager._make_path(f"{name}.{ir}") if ir == ext: next_module = parse(fn) - elif os.path.exists(path) and\ + elif os.path.exists(path) and \ + ir in metadata["ctime"] and \ os.path.getctime(path) == metadata["ctime"][ir]: next_module = parse(path) else: