Skip to content

Commit

Permalink
Fix docs, add netron output docs (#3740)
Browse files Browse the repository at this point in the history
The docs were broken for the driver options. Added note about --netron output.
  • Loading branch information
CharlieL7 authored Jan 4, 2025
1 parent 5f9e048 commit 9bc94ab
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
4 changes: 4 additions & 0 deletions docs/driver/read.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ Print out the program as cpp program.

Print out program as json.

.. option:: --netron

Print out program as a Netron viewable json file.

.. option:: --text

Print out program in text format.
Expand Down
2 changes: 2 additions & 0 deletions docs/migraphx-driver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ To learn which options can be used with which commands, see the :ref:`MIGraphX d
- Prints the program in .txt format
* - --binary
- Prints the program in binary format
* - --netron
- Prints the program in Netron viewable JSON format
* - --output | -o
- Writes output in a file
* - --fill0
Expand Down
22 changes: 11 additions & 11 deletions docs/reference/driver-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ read

Loads and prints input graph.

.. include:: ./driver/read.rst
.. include:: ../driver/read.rst

compile
-------
Expand All @@ -25,8 +25,8 @@ compile

Compiles and prints input graph.

.. include:: ./driver/read.rst
.. include:: ./driver/compile.rst
.. include:: ../driver/read.rst
.. include:: ../driver/compile.rst

run
---
Expand All @@ -35,8 +35,8 @@ run

Loads and prints input graph.

.. include:: ./driver/read.rst
.. include:: ./driver/compile.rst
.. include:: ../driver/read.rst
.. include:: ../driver/compile.rst

perf
----
Expand All @@ -45,8 +45,8 @@ perf

Compiles and runs input graph then prints performance report.

.. include:: ./driver/read.rst
.. include:: ./driver/compile.rst
.. include:: ../driver/read.rst
.. include:: ../driver/compile.rst

.. option:: --iterations, -n [unsigned int]

Expand All @@ -59,8 +59,8 @@ verify

Runs reference and CPU or GPU implementations and checks outputs for consistency.

.. include:: ./driver/read.rst
.. include:: ./driver/compile.rst
.. include:: ../driver/read.rst
.. include:: ../driver/compile.rst

.. option:: --rms-tol [double]

Expand Down Expand Up @@ -104,5 +104,5 @@ Here is how you can use ``roctx`` combined with :doc:`rocprof <rocprofiler:rocpr
Running :doc:`rocprof <rocprofiler:rocprofv1>` generates trace information for HIP, HCC and ROCTX in separate ``.txt`` files.
To understand the interactions between API calls, utilize the :ref:`roctx.py <tools>` helper script.

.. include:: ./driver/read.rst
.. include:: ./driver/compile.rst
.. include:: ../driver/read.rst
.. include:: ../driver/compile.rst

0 comments on commit 9bc94ab

Please sign in to comment.