cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

nou
Exemplar

code working in CPU and not in GPU

or you can compute four value in one work unit and then write out result like this
out[gid] = a<<24 | b<<16 | c<<8 | d;

0 Likes
MicahVillmow
Staff
Staff

code working in CPU and not in GPU

The problem here is you are using an extension that the device does not support. Make sure you query OpenCL runtime to check if your device that you are running on supports the extensions specified in your kernel. Not following this will result in undefined behavior.
0 Likes
pavandsp
Adept I

code working in CPU and not in GPU

Yaa byte-addressable extension was the problem..i removed and it ia working fine in GPU and i converted my buffers to uint.

thanks for the finding.

0 Likes