AnsweredAssumed Answered

Why does increasing the number of kernel arguments impacts performance ?

Question asked by sayantandatta on Jul 18, 2013
Latest reply on Jun 5, 2014 by mrrvlad

GPU: 7970

OS: Kubuntu 12.04 x64

Driver: Catlyst 13.4




I know this sounds crazy but it is actually true. Increasing the number of kernel arguments beyond a certain number causes the performance to drop. In one of my kernels if I move from 6 to 7 kernel arguments performance drops by 30% even though I don't do any computation with the the new kernel argument. I can't reduce the number of arguments by assembling them into a struct because all of them are dynamic arrays of variable length. Is there a way to avoid this problem ?