Results 1 to 2 of 2

Thread: Parameters index inside a kernel

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    2

    Parameters index inside a kernel

    Hello, my question is if it is possible to know the index number of a kernel parameter inside this kernel. For example:

    __kernel void Func( a, b,c, )
    {

    Here I would want to know the index of a b or c, which is 0, 1 and 2 respectively

    }

    Thanks

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Parameters index inside a kernel

    There is no builtin function or macro that will do what you are asking for. You have to do it by hand.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. Kernel Memory Error (illegal access inside kernel) - why?
    By Syndacate in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 4
    Last Post: 08-06-2012, 01:18 AM
  2. Describing kernel parameters
    By eXandr in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 1
    Last Post: 01-18-2011, 09:06 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
  •