Skip to content

Allow optimization on NVPTX modules when line line numbers are emitted - #556

Merged
ZwFink merged 1 commit into
mainfrom
strip-debug-to-directives
Nov 2, 2026
Merged

ZwFink merged 1 commit into
mainfrom
strip-debug-to-directives

Conversation

@ZwFink

@ZwFink ZwFink commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

PR #514 made kernel source code discoverable from the IR module by emitting modules with line number information. To achieve this, it made it so Proteus, instead of stripping all debug info, strips only non-line-number debug information. But this actually raises the debug info level above the minimum required to have line number information, and the PTX compiler will not optimize these modules. This hugely affects Mneme's replay performance on CUDA machines.

This branch strips debug info from proteus modules, in line with existing behavior, but preserves source code locations.
This shows replay time with Mneme vs the runtime of the recorded kernel:

Kernel Baseline Mneme + Proteus main Mneme + PR556
stencil 103 343 103
rotate 6751 10503 6624

@ZwFink ZwFink changed the title Allow optimization on NVPTX modules when line table info is emitted Allow optimization on NVPTX modules when line line numbers are emitted Nov 2, 2026
@ZwFink
ZwFink merged commit 8c13e2d into main Nov 2, 2026
90 of 92 checks passed
@ZwFink
ZwFink deleted the strip-debug-to-directives branch November 2, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant