[Triton-MLIR][RUNTIME] Fix ir metadata lookup bug (#910)

This commit is contained in:
Crutcher Dunnavant
2022-11-24 00:27:23 -08:00
committed by GitHub
parent b688f7b7b8
commit ace7d28736

View File

@@ -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: