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.