cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

apcool
Journeyman III

opencl program to find sum of array

hi....i need to write sum of array opencl program for my thesis.........i studied reduction example form amd samples..........i have no idea why my code is giving wrong output.......please someone help me to correct my code........

0 Likes
1 Reply
himanshu_gautam
Grandmaster

Re: opencl program to find sum of array

You seem to be using local size of 512 which is not supported on AMD cards. (use 256 or just leave it blank).

Also some suggestion, check OpenCL spec 1.2 and see how error codes are returned from various APIs. Check error codes for each OpenCL API. You can interpret the error using cl.h file.

0 Likes