Skip to content

Commit a769c11

Browse files
committed
Add docs changes
1 parent 42eaac8 commit a769c11

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Full documentation for MIGraphX is available at
99

1010
* Added a dedicated logger for MIGraphX.
1111
* [Linux] Use HSA API to query number of chiplets for architectures where this is applicable (ex. gfx90a).
12+
* Added debug symbols for MIGraphX instructions such that parsed and compiled instructions can be tracked back to their ONNX origin node node with MIGRAPHX_ENABLE_DEBUG_SYMBOLS (#4626)
1213

1314
### Changed
1415

docs/reference/MIGraphX-dev-env-vars.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,14 @@ Compilation tracing
514514
515515
| Default: Quantization parameters aren't printed.
516516
517+
* - | ``MIGRAPHX_ENABLE_DEBUG_SYMBOLS``
518+
| Adds parsing and propagating of debug symbols through compiler passes such that the origin of instructions
519+
| can be more easily determined. For ONNX models, the debug symbols are the ONNX node names.
520+
521+
- | ``1``: Enable parsing and propagating debug symbols.
522+
523+
| Default: Debug symbols are not parsed nor propagated.
524+
517525
MLIR
518526
**************************
519527

src/instruction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ void instruction::print(std::ostream& os,
447447
if(ins->target_id != 0)
448448
os << ", target_id=" << ins->target_id;
449449

450-
// print debug symbols if enabled
450+
// print debug symbols if they exist
451451
if(not ins->debug_symbols.empty())
452452
{
453453
os << " /* " << join_strings(ins->debug_symbols, ", ") << " */";

0 commit comments

Comments
 (0)