Hi,I have implement a 'scan' algorithm in OpenCL. Because it is an open source library I test in on several machines and OpenCL-SDK.But, it crash with the Intel SDK ! (Not with the other ones).What I have discover is that the problem is maybe related to the "__local" memory !I have the following kernel : __kernelvoid kernel__ExclusivePrefixScan(...,__local T* localBuffer,...)And I set up my buffer with the following command : clStatus = clSetKernelArg(_kernel_Scan, 2, _workgroupSize * 2 * sizeof(int), 0); checkCLStatus(clStatus); <= CL_SUCCESS !!!Where _workgroupSize= 128; So, I reserve 1024 bytes only !!!You can find the code at :http://code.google.com/p/clpp/Krys
For more complete information about compiler optimizations, see our Optimization Notice.