Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.41 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.41 KB

ChromeTrace2Otf2

This tool is developed to convert files from Chrome's Trace Event Format created by TensorFlow into OTF2 files. Therefore, we only take care of features used by TensorFlow's traces at the moment.

Installation

This script requires the OTF2 Python bindings. These are installed with the OTF2 library. Bindings for Python 3 are included since OTF 2.3. If you install OTF2 to a custom location like /opt, you wil have to add the installed Python package to the PYTHONPATH like so:

# The OTF2 configure step requires the 'six' module for the Python bindings
python3 -m pip install --user six
wget http://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/otf2-2.3/otf2-2.3.tar.gz
tar -xf otf2-2.3.tar.gz
cd otf2-2.3
./configure --prefix=/opt/otf2.3

Ensure that the summary output includes the line:

      Python bindings support:  yes, using /usr/bin/python3

If not, it tells you which Python dependecies are missing. Continue with:

make && make install

export PYTHONPATH=$PYTHONPATH:$(/opt/otf2.3/bin/otf2-config --pythonpath)

python3 -c 'import otf2; print(otf2.__version__)'  # 2.3

TODO

  • Dataflow
  • Metric: Top allocations
  • Map new created processes for only collecting one metric to process with same name
  • If available, add memory trace as a custom metric
  • Add multi-host support