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?
I had one variable (just a float) which will be used in all thread, which is the best place (memory)
Either as an argument to the kernel function, or into constant memory.
Christian
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.
Thanks.
no difference on sm_20, arguments are stored in constant memory :)