View Full Version : Kernel Function calls incoherence

03-10-2010, 07:46 AM
Hi everyone!

I'm new in OpenCL World, and right now all I've been doing is nothing but research. But I've something incoherence with my knowledge and the OpenCL Specs.

During my research i learned that a kernel cannot make a call to other functions, but in spec I've found this:

Kernel: A kernel is a function declared in a program and executed on an OpenCL device. A
kernel is identified by the __kernel qualifier applied to any function defined in a program

Can you elucidate me about this?

Thank you very much! :D

03-10-2010, 09:30 AM
Kernels can call any other functions defined in the code you compiler, but on current GPUs these calls are just inlined.