Domanda di colloquio di Codeplay Software

How would you implement a printf() function that could be called on a GPU ?