Repository navigation
Move SASS diff description to a SKILL - #9767
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe SASS diff instructions are removed from ChangesSASS diff skill relocation
Assessment against linked issues
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 80db501d-a267-462f-ad53-e71ae893129b
📒 Files selected for processing (3)
.agent/skills/sass-diff/SKILL.md.claude/skills/sass-diff/SKILL.mdAGENTS.md
💤 Files with no reviewable changes (1)
- AGENTS.md
f956a5f to
9a3165a
Compare
| * The CUDA SM architectures to compile for. Try to detect this from the code and offer the user a list of suggestions. | ||
| The user must confirm or provide this list. |
There was a problem hiding this comment.
I would note that the bot should also check the compile_commands.json to get a definitive answer for this. The architectures will be listed explicitly in the compiler flags.
There was a problem hiding this comment.
No it shouldn't. compile_commands.json is what the user compiles for but not necessarily what SM architectures you want to SASS diff. For example, I develop with only SM120 in CMAKE_CUDA_ARCHITECTURES, but every time I SASS-diff I lookup in the tuning headers what SM arches could be impacted by the change and then ask to diff for those.
There was a problem hiding this comment.
I think I understand now, reworded a bit.
9a3165a to
e9fe056
Compare
|
I think I understand now where some of the confusion came from. I mixed up the inputs section with how the binaries are compiled. I expanded a little bit, maybe that clarifies. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 7599f1c8-f2da-4fc8-8517-a310524bfda4
📒 Files selected for processing (3)
.agent/skills/sass-diff/SKILL.md.agent/skills/sass-diff/normalize_codegen.pyAGENTS.md
🚧 Files skipped from review as they are similar to previous changes (1)
- AGENTS.md
| line = re.sub(r"0x[0-9a-fA-F]+", "0xHEX", line) | ||
| line = re.sub(r"\b[0-9a-fA-F]{16,}\b", "HEX", line) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🔴 Critical | 🏗️ Heavy lift
critical: Preserve semantic immediates and label identity.
normalize_common() replaces every hexadecimal literal and long numeric token, so meaningful operands such as 0x1 and 64-bit constants can disappear from the diff. normalize_ptx() also maps every distinct $L__... label to the same placeholder, which can hide branch-target and control-flow changes. Restrict numeric normalization to known metadata fields and canonicalize labels with a per-input mapping that preserves distinct identities.
Also applies to: 40-40
There was a problem hiding this comment.
claude argued the same.I think I am going to remove normalization for now.
There was a problem hiding this comment.
@bernhardmgruber Sounds good — removing normalization avoids the risk of masking semantic diffs. Let me know if you want another look once that change lands.
|
I removed the SASS normalization again. Let's discuss this at some point in the future. |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (4)
.agent/skills/sass-diff/SKILL.md (4)
26-30: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winimportant: Build both sources in isolated, fresh outputs.
The workflow does not require clean or separate build directories/output paths. An incremental build can reuse an object or binary from the other source, producing a false SASS diff. Require isolated baseline/comparison builds and verify that both binaries were rebuilt with the same flags.
34-40: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winimportant: Do not treat global function renames as unconditional noise.
A renamed, added, or removed kernel can become unmatched or be compared against the wrong symbol. Match kernels one-to-one first, report additions/removals, and ignore a name-only change only after that mapping is established.
22-22: 🚀 Performance & Scalability | 🟠 Major | ⚡ Quick winimportant: define PTX-specific reporting rules. PTX diff is supported, but the contract still doesn't say where register-count, spill/local-memory, shared-memory, or occupancy deltas come from; add a mode-specific source/command for each metric or limit those fields to SASS-only.
17-19: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winimportant: Compare each approved SM architecture independently. Add one SASS/PTX diff per SM and label the architecture in each result; otherwise architecture-specific changes can be mixed together.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: c7498530-f563-49b8-be99-a13b7bdf8701
📒 Files selected for processing (1)
.agent/skills/sass-diff/SKILL.md
Jacobfaib
left a comment
There was a problem hiding this comment.
A shame we couldn't get the SASS normalization scripts to work, but thinking about it a bit more, that might actually be a NP-hard problem in disguise ;)
We can definitely try that in a follow-up! |
Fixes: #7829