Giter Site home page Giter Site logo

dlio_microbenchmark's Introduction

Deep Learning I/O microbenchmark

This benchmark depends on HDF5:

export HDF5_ROOT=PATH_TO_INSTALL_HDF5
git clone https://github.com/HDFGroup/hdf5.git
cd hdf5
./autogen.sh
CC=mpicc CXX=mpicxx ./configure --enable-parallel --enable-symbols=yes --prefix=$HDF5_ROOT/ --enable-build-mode=debug --enable-shared --enable-parallel --enable-threadsafe --enable-unsupported --enable-map-api
make -j 8
make install

Parallel read

  • prepare_dataset.cpp this is to prepare the dataset for the parallel read benchark.
mpirun -np 4 ./prepare_dataset --num_images 8192 --sz 224 --output images.h5

This will generate a hdf5 file, images.h5, which contains 8192 samples. Each 224x224x3 (image-base dataset)

  • **read_cache.cpp is the benchmark code for evaluating the parallel read performance. This will read the samples batch by batch from the shared file
    • --input: HDF5 file [Default: images.h5]
    • --dataset: the name of the dataset in the HDF5 file [Default: dataset]
    • --num_epochs [Default: 2]: Number of epochs (at each epoch/iteration, we sweep through the dataset)
    • --num_batches [Default: 16]: Number of batches to read per epoch
    • --batch_size [Default: 32]: Number of samples per batch
    • --shuffle: Whether to shuffle the samples at the beginning of each epoch.
    • --local_storage [Default: ./]: The path of the local storage.

dlio_microbenchmark's People

Contributors

zhenghh04 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.