Re:Lisa Su Saved AMD. Now She Wants Nvidia's AI Crown
by KeplerBoy on Friday June 02, 2023 @04:12PM
(#36170128)
OpenCL also gets compiled to PTX on Nvidia GPUs.
[ Parent
| on HN ]
Re:Lisa Su Saved AMD. Now She Wants Nvidia's AI Crown
by dragontamer on Friday June 02, 2023 @04:24PM
(#36170264)
But as an OpenCL programmer, you don't distribute PTX intermediate code. You distribute OpenCL kernels around and recompile every time. That's more or less the practice.
Re:Lisa Su Saved AMD. Now She Wants Nvidia's AI Crown
by KeplerBoy on Friday June 02, 2023 @04:29PM
(#36170338)
True.
And the resulting PTX is worse when it's generated from OpenCL C instead of CUDA C. I tested that recently with a toy FFT kernel and the CUDA pipeline produced a lot more efficient FMA instructions.