Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can generate a DOT file from a DAX file using the dax2dot.py tool pegasus-graphviz tool provided with Pegasus in the $PEGASUS_HOME/bin directory.

...

Code Block
Usage: pegasus-graphviz [options] FILE

Parses FILE and generates a DOT-formatted graphical representation of the DAG.
FILE can be a Condor DAGMan file, or a Pegasus DAX file.

Options:

  -h, --help            show this help message and exit
  -s, --nosimplify      Do not simplify the graph by removing redundant edges.
                        [default: False]
  -l LABEL, --label=LABEL
                        What attribute to use for labels. One of 'label',
                        'xform', 'id', 'xform-id', 'label-xform', 'label-id'.
                        For 'label', the transformation is used for jobs that
                        have no node-label. [default: label]
  -o FILE, --output=FILE
                        Write output to FILE [default: stdout]
  -r XFORM, --remove=XFORM
                        Remove jobs from the workflow by transformation name
  -W WIDTH, --width=WIDTH
                        Width of the digraph
  -H HEIGHT, --height=HEIGHT
                        Height of the digraph

  -f, --files           Include files. This option is only valid for DAX
                        files. [default: false]Usage:
dax2dot.py [options] DAGFILE

Example

Code Block
$PEGASUS_HOME/bin/pegasus-graphviz --output scb.dot scb_dax.xml

...

Pegasus automatically generates a DOT file (<daxlabel-daxindex>.dot) for each executable workflow and saves it in the submit directory. You can use this file, or you can generate a different one using the dag2dot.py pegasus-graphviz tool provided with Pegasus ($PEGASUS_HOME/bin/dag2dot.pypegasus-graphviz). The difference is that dag2dot.py gives pegasus-graphviz gives you some additional options that aren't available if you use the automatically-generated DOT file.

...

Code Block
Usage: pegasus-graphviz [options] FILE

Parses FILE and generates a DOT-formatted graphical representation of the DAG.
FILE can be a Condor DAGMan file, or a Pegasus DAX file.

Options:

  -h, --help            show this help message and exit
  -s, --nosimplify      Do not simplify the graph by removing redundant edges.
                        [default: False]
  -l LABEL, --label=LABEL
                        What attribute to use for labels. One of 'label',
                        'xform', 'id', 'xform-id', 'label-xform', 'label-id'.
                        For 'label', the transformation is used for jobs that
                        have no node-label. [default: label]
  -o FILE, --output=FILE
                        Write output to FILE [default: stdout]
  -r XFORM, --remove=XFORM
                        Remove jobs from the workflow by transformation name
  -W WIDTH, --width=WIDTH
                        Width of the digraph
  -H HEIGHT, --height=HEIGHT
                        Height of the digraph

  -f, --files           Include files. This option is only valid for DAX
                        files. [default: false]Usage:
dax2dot.py [options] DAGFILE

Example

Code Block
$PEGASUS_HOME/bin/pegasus-graphviz --output scb.dot scb-0.dag

...