Skip to content

Commit

Permalink
Fix the data dir path (#108)
Browse files Browse the repository at this point in the history
So we pass absolute path to profiler but we pass relative to code itself.
  • Loading branch information
hariharan-devarajan authored Nov 6, 2023
1 parent a724c11 commit 8dd1223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlio_benchmark/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, cfg):
except:
self.args.output_folder = 'output/'
self.output_folder = self.args.output_folder
PerfTrace.initialize_log(self.args.output_folder, os.path.abspath(self.args.data_folder))
PerfTrace.initialize_log(self.args.output_folder, f"{os.path.abspath(self.args.data_folder)}:{self.args.data_folder}:./{self.args.data_folder}")
with Profile(name=f"{self.__init__.__qualname__}", cat=MODULE_DLIO_BENCHMARK):
self.storage = StorageFactory().get_storage(self.args.storage_type, self.args.storage_root, self.args.framework)

Expand Down

0 comments on commit 8dd1223

Please sign in to comment.