Gilbert Lee's blog

A Simple Trick To Pass Constant Arguments Into GPU Kernels

A Simple Trick To Pass Constant Arguments Into GPU Kernels

Most CUDA developers are familiar with methods of passing constant arguments into GPU kernels.  The simplest method is directly via kernel parameters and the other option is copying to constant memory.  Under certain circumstances though, there’s another lesser-known way to get constants into your GPU kernel, that may even improve kernel performance!  

Subscribe to RSS - Gilbert Lee's blog