Incorrect StdOut/printf behaviour when using opencl and command line pipes

Discussion created by divot_powell on Oct 18, 2011
Latest reply on Oct 18, 2011 by MicahVillmow

I have noticed some odd behaviour when using openCL. After using any openCL function, say clGetPlatformIDs, StdOut no longer automatically flushes itself when the program exits. This is most apparent when piping stdout between programs in linux (fedora, ubuntu and suse tested) as any data written to stdout does not make it to the other file or program.

Has anyone else noticed this? Is there a solution?

Note: This is using printf inside normal cpu code, not inside an opencl kernel.