I had one variable (which is frequency, a float type) which will be used in all thread, which is the best place (memory) I should put?
Either as an argument to the kernel function, or into constant memory.
Thanks. I was thinking about. Which one is better you think, constant memory or as argument? I personally don’t want to put it into the the argument. Then I have to make this argument for all functions.
constant, no doubt.
no difference on sm_20, arguments are stored in constant memory :)