AnsweredAssumed Answered

Support of Templates in OpenCL (Linux)

Question asked by ifrah on Sep 7, 2013
Latest reply on Feb 15, 2016 by gc9

Hi,

According to the following link, templates seem to be supported by OpenCL http://developer.amd.com/wordpress/media/2012/10/CPP_kernel_language.pdf

I am working on linux platform and I tried to use templated functions but i am constantly getting error -11. I am using simple C functions in my code apart from templates and using g++ to compile my code. Do we have to do something special or set something to use C++ stuff or templates?

Bolt use heavy templates (its for windows though) so it kind of proves that openCL does support templates or am i missing something?

Outcomes