4 ms·
OpenCL also gets compiled to PTX on Nvidia GPUs.
by KeplerBoy 3y ago
OpenCL also gets compiled to PTX on Nvidia GPUs.
- dragontamer 3y agoBut 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.
- KeplerBoy 3y agoTrue. 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.