Results 1 to 2 of 2

Thread: Basic question

  1. #1

    Basic question

    Hi forum,

    I am going through a kernel function definition which in turn is calling another without any __kernel declaration . Should this one be running over the gpu or cpu ? I believe it will be running on CPU ?
    What do you folks say?

    for example :

    Code :
    __kernel void hello_kernel(....)
    static void call_another(...)


  2. #2

    Re: Basic question

    The function call_another will get executed on the GPU, assuming you are using a GPU as your OpenCL device. Since GPUs don't really understand function calls, call_another will actually be inlined in the kernel.

Similar Threads

  1. Very Basic Question
    By bmac in forum OpenCL
    Replies: 2
    Last Post: 12-10-2009, 05:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean