Skip to content
Snippets Groups Projects
Commit ac233579 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Add plot_task_dependency.py in the doc

parent e7b42f13
Branches
Tags
1 merge request!738Improve task dep
......@@ -9,10 +9,12 @@ Task System
This section of the documentation includes information on the task system
available in SWIFT, as well as how to implement your own task.
SWIFT produces at the beginning of each simulation a ``dot`` file (see the graphviz library for more information).
It contains the full hierarchy of tasks used in this simulation.
SWIFT can produce a graph containing all the dependencies using graphviz.
At the beginning of each simulation a ``csv`` file is generated and can be transformed into a ``png`` with the script ``tools/plot_task_dependencies.py``.
This script has also the possibility to generate a list of function calls for each task with the option ``--with-calls``.
You can convert the ``dot`` file into a ``png`` with the following command
``dot -Tpng dependency_graph.dot -o dependency_graph.png``.
``dot -Tpng dependency_graph.dot -o dependency_graph.png`` or directly read it with the python module ``xdot`` with ``python -m xdot dependency_graph.dot``.
.. toctree::
:maxdepth: 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment