From: Pekka J. <pek...@tu...> - 2011-11-09 14:27:43
|
On 11/09/2011 03:40 PM, Erik Schnetter wrote: > The math lib is not the only thing that could be useful. For example, > printf is a very useful OpenCL extension that should be supported. The > underlying I/O stream representation probably needs to be implemented from > scratch, but the formatting code should work fine. I'm not sure of printf(). Maybe that should use the stdio.h and -lc of the device because 1) The actual stdout stream destination is fully platform (OS+device) dependent. 2) The "inlining benefits" do not apply to it as it's probably only used for debug printouts. Inter-WI DLP does not matter here. 3) It's an optional extension. In case the target does not support it, the target just doesn't advertise it as a vendor extension. -- Pekka |