Unofficial Hacker News companion — get notified on comment replies, and more.

ML compiler eng, your job is NP-hard (opens external site)

35 points by gmays 7 days ago | ianbarber.blog | 9 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. > in this case it moved one local_load 6 ops earlier, which caused ptxas to drop from 255 registers to 40. I don’t know why!

    This is usually because ptxas runs a very simple pass to try to calculate register usage and it has a number of heuristics that it tries to apply to decide whether to keep things in the same registers or to grab new ones. Usually I find that for very high performance code they are not useful and produce very surprising behavior that makes it hard to predict performance :(