cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

shubh809
Journeyman III

Opencl kernel local memory

OpenCL provides local memory similar to shared memory in cuda. In cuda we have to use volatile with shared memory , because If you don't declare a shared array as volatile, then the compiler is free to optimize locations in shared memory by locating them in registers. But it will be problem if threads communicate between each other. My question is do we have to follow same approach(of using volatile) in opencl kernel also and if yes how should I do it?

0 Likes
0 Replies