clFlush / clFinish causes application to quit immediately

Discussion created by pauldoo on Sep 8, 2009
Latest reply on Sep 9, 2009 by MicahVillmow
Stream SDK v2.0 beta2: clFlush / clFinish cause application to quit immediately

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?