OpenCL-Docs icon indicating copy to clipboard operation
OpenCL-Docs copied to clipboard

clarify that format must be a string literal in OpenCL_C.txt

Open aharon-abramson opened this issue 9 months ago • 1 comments

The intent behind "resolvable at compile time" is that format cannot be a kernel argument (see https://github.com/KhronosGroup/OpenCL-Docs/issues/1325#issuecomment-268542016)

aharon-abramson avatar Feb 27 '25 09:02 aharon-abramson

I think the old text allowed a constant variable containing format, not just a string literal.

That way, we can define these formats at the top and reuse them for multiple printf calls without #define-s.

SunSerega avatar Feb 27 '25 10:02 SunSerega

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 03 '25 11:06 CLAassistant

Added the last commit here by mistake.

aharon-abramson avatar Jun 03 '25 11:06 aharon-abramson