Fix compute capability encoding for mathDx#1170
Conversation
Greptile SummaryThis PR fixes an off-by-10× encoding bug in compute capability calculation where the minor version was added as a raw digit instead of being multiplied by 10 (e.g., SM 8.9 was encoded as 809 instead of the correct 890). The fix is applied consistently across all three affected sites.
Confidence Score: 5/5Safe to merge — all three encoding sites are corrected and no callers are broken by the fix. The change is a minimal, targeted arithmetic correction applied consistently to every location that computes the CUDA compute capability value. The one downstream caller comparing against >= 1000 for SM 10.0 is unaffected because SM 10.0 has minor = 0, making both encodings produce identical results there. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Fix compute capability encoding for math..." | Re-trigger Greptile |
37151c1 to
5a0cb6b
Compare
|
/build |
This was getting computed incorrectly (e.g. 809 instead of 890)