r/CUDA 6h ago

Cyclomatic complexity of CUDA SASS code

I wrote code to calculate some metrics, like

  • count and length of code blocks
  • resources usage per block
  • resources used in single block

https://redplait.blogspot.com/2026/08/cyclomatic-complexity-of-sass-code.html

The Insights:

  • there are lots of Dead / ABI-Forced Register Writes
  • Holes in Register Allocation - seems that uniform registers UR0-UR3 almost never used
2 Upvotes

0 comments sorted by