From c5db738644cc89c2a050c408bed92d4a6c141bf3 Mon Sep 17 00:00:00 2001 From: Taekyung Heo <7621438+TaekyungHeo@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:10:41 -0400 Subject: [PATCH] Resolve kineto_file path bug with absolute path conversion --- src/trace_link/trace_linker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/trace_link/trace_linker.py b/src/trace_link/trace_linker.py index 4f45178f..af158f45 100644 --- a/src/trace_link/trace_linker.py +++ b/src/trace_link/trace_linker.py @@ -440,7 +440,9 @@ def load_sync_dependencies( that have synchronization dependencies. """ sync_dependencies = {} - trace_analysis = TraceAnalysis(trace_dir=os.path.dirname(kineto_file)) + absolute_kineto_file = os.path.abspath(kineto_file) + trace_dir = os.path.dirname(absolute_kineto_file) + trace_analysis = TraceAnalysis(trace_dir=trace_dir) cp_graph, success = trace_analysis.critical_path_analysis( rank=rank, annotation=annotation, instance_id=instance_id )