Kernel code size limitations

How big can I make a kernel function? As big as available video RAM? Could I take all 30K lines of the x264 encoder and squeeze them onto the GPU? :)

I could not find code size documented anywhere. There are size limits on shared and constant memory documented somewhere.

Spencer

In theory, a kernel can be 2MB of native instructions.

But, we haven’t tested kernels this long. :)

Hi Cyril,

Thanks. I am not sure I want to get any where close to that size. :)

Spencer