I think I've stumbled onto a bug with the printf function in OpenCL with the ATI Stream SDK 2.0 Final. If you look at the attached code for a sample kernel, you would expect it to output
Decimals: 1977 65000
However, it does not. Instead I get:
Decimals: 8 515546592
which is simply wrong. Is this a known bug? I was hoping to use printf to help with debugging.
__kernel void TestKernel() { int nIndex = get_global_id(0); if (nIndex == 0) printf ("Decimals: %d %ld\n", 1977, 650000L); }