Hacker News new | past | comments | ask | show | jobs | submit login

> How come when I upgrade my graphics card on a PC I don't need to upgrade the binary?

> When compiling for Nvidia chips there's only one target. I believe all Nvidia chips despite different architectures use the same underlying assembly language. So a cuda binary should work everywhere.

Because on the PC, Nvidia only exposes high level targets for the shaders. Even PTX, the assembly you might be familiar with combined with cuda, isn't actually the device's asm, but instead it gets compiled down to the device's asm using a full compiler. It's poorly named and more a compiler IR than an asm.




Makes sense thanks for clarifying.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: