Could you remove printf buffering for this miner (and for the CPU version too)? At the moment, it's nearly impossible to redirect stdout to file, and some folks (there were such requests previously, according to google results) really need this for automation. Using auto-generated logs is not an option for some reasons.
It's only an one-line fix:
setvbuf(stdout, NULL, _IONBF, 0);
Thanks!