Quantcast
Channel: Community : All Content - OpenCL
Viewing all articles
Browse latest Browse all 2400

Why does increasing the number of kernel arguments impacts performance ?

$
0
0

GPU: 7970

OS: Kubuntu 12.04 x64

Driver: Catlyst 13.4

 

Hi,

 

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 ?

 

Regards,

Sayantan 


Viewing all articles
Browse latest Browse all 2400

Latest Images

Trending Articles



Latest Images