NVIDIA / NVIDIA/cutlass

[BUG][Inductor-EVT] Python EVT tracer generates incorrect code when assigning accumulator to output D

Open
#2,288 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

? - Needs Triage bug inactive-90d
Dominant language
C++
Stars
10.5k
Forks
2.1k
Avg merge
3d 11h
Merged PRs (30d)
7

Description

Describe the bug
When assigning accum arg to D, invalid code is generated. Namely, an alias EVTD is used but not defined (line 18 in the output code). This restriction should probably either be a hard error or generate the definition of the type alias.

Steps/Code to reproduce bug

script
output code

Expected behavior
Generate buildable code

Environment details (please complete the following information):
Meta devgpu, although this should repro on any other machine.

To workaround this I ensure that accum is not assigned to D. (swapping D and E in the example yields valid code)

cc @thakkarV, @mnicely, @henrylhtsang, @eellison

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the linked reproduction script and inspect the linked output code, focusing on the undefined EVTD alias when the accumulator is assigned to D. Trace the Python EVT tracer's generated output and verify that the resulting code builds successfully without an undefined alias.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.