I am experimenting with some simple OpenCL code on the Linux 64-bit version of the Stream SDK v2.0 beta2. I find that in my application my first call to clFlush or clFinish causes the application to die immediately. Not even my stdout stream is flushed, which has caused me to call "setvbuf(stdout, NULL, _IONBF, 0);" simply to make debugging this far possible.
It isn't that these functions return failure, it's that they don't return, they just take down my app.
The samples that come with the SDK work perfectly so this must be something I'm doing weird. As I debug further and strip my application down to bare bones, has anyone else experienced this or know what might be the cause?