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. Replies: 4
    Last Post: 08-06-2012, 01:18 AM
  2. Describing kernel parameters
    By eXandr in forum Suggestions for next release
    Replies: 1
    Last Post: 01-18-2011, 10: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
  •