Skip to content

Commit

Permalink
Workloads (#112)
Browse files Browse the repository at this point in the history
* added support for multiprocessing context

* added file access option for MPI IO

* data loader optimzing

* change profiling to false to disable iostat by default

* added copyright info to python files that did not have it

* fixed dali data loader execution.

* fixing batch_size not defined issue

* Merge branch 'main' into bugfix/dali-dl

* fixes the calculation of image idx.

* fixes the calculation of image idx.

* added new workloads

* set prefetch_factor to be 2 if it was set to be 0

* moved some part of the code init in tf_reader

* fixed DataLoader args issues

* recover tf_reader code

* changed resnet50 tensorflow

* fixed resnet50 config and sleep issue

* fixed resnet50 config and sleep issue (#96)

* added input x for compute

* Workloads (#99)

* fixed resnet50 config and sleep issue

* added input x for compute

* make it flexible in matching file patterns [e.g., jpeg==JPEG]

* fixed typo

* fixed fnmatch

* fixed patterns matching case ignore

* fixed bugs for tensorflow

* fixed file list issue

* renamed resnet50_tf

* reflected recent changes of the DLIO-Profiler code

* test-dlio-profiler

* added dlio_profiler test

* fixed test_dlio_profiler

* removed test_dlio_profiler

---------

Co-authored-by: Hariharan Devarajan <[email protected]>
  • Loading branch information
zhenghh04 and hariharan-devarajan authored Nov 20, 2023
1 parent d06e63f commit b5b9ff7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion dlio_benchmark/data_generator/tf_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from dlio_benchmark.data_generator.data_generator import DataGenerator
import numpy as np
import tensorflow as tf

from dlio_benchmark.utils.utility import progress, utcnow
from dlio_profiler.logger import fn_interceptor as Profile
from shutil import copyfile
Expand Down
1 change: 0 additions & 1 deletion dlio_benchmark/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def __init__(self, cfg):
self.output_folder = self.args.output_folder
self.storage = StorageFactory().get_storage(self.args.storage_type, self.args.storage_root,
self.args.framework)

self.output_folder = self.args.output_folder
self.output = StorageFactory().get_storage(self.args.storage_type, self.args.output_folder,
self.args.framework)
Expand Down
2 changes: 1 addition & 1 deletion dlio_benchmark/reader/npz_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, dataset_type, thread_index, epoch):
@dlp.log
def open(self, filename):
super().open(filename)
return np.load(filename, allow_pickle=True)["x"]
return np.load(filename, allow_pickle=True)['x']

@dlp.log
def close(self, filename):
Expand Down
2 changes: 1 addition & 1 deletion dlio_benchmark/utils/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ def create_dur_event(name, cat, ts, dur, args={}):


def get_trace_name(output_folder):
return f"{output_folder}/trace-{get_rank()}-of-{get_size()}.pfw"
return f"{output_folder}/trace-{get_rank()}-of-{get_size()}.pfw"

0 comments on commit b5b9ff7

Please sign in to comment.