I want to store in contant memory a float value. I declare it as:
__constant__ float RADIUS;
And then I want to copy the value “radius” to RADIUS as:
The compiler out:
Using arrays I have no problem. But does anybody know how can I copy just one value to constant memory?
Thank you everyone for your time.
PD: If it is possible I don’t want to pass it by kernel parameter.
I tried this:
It complies fine, but the execution outs:
Does anyboydy know why?
Thank you again