Results 1 to 2 of 2

Thread: New feature request : kernel parameters as 'static' !

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    8

    New feature request : kernel parameters as 'static' !

    Hi,

    In CUDA, when you declare a gpu-buffer it is accessible to all the methods of your kernel, not only the 'kernel' (All other parameters too).

    In OpenCL, there is a problem because if you have a lot of buffers, you have to pass all the buffers pointers to every method !

    The best way I have found is to create a typedef that will contains all theses pointers, if I don't want that all the methods have 40 parameters ! But it require time to initialize, to pass and some memory too. Also it will be easier if we will be able to access all theses buffers/parameters globally !

    BTW, does someone know if OpenCL 2 (or a new specification) is in preparation ? Because we really miss a lot of features Even if today it is more important to have stable OpenCL drivers !

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

    Re: New feature request : kernel parameters as 'static' !

    BTW, does someone know if OpenCL 2 (or a new specification) is in preparation ?
    Khronos has a policy of not discussing future releases. I would take with a (generous) grain of salt any rumours you find on the web.
    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. Linking Kernel with Static Library
    By paan9568 in forum OpenCL
    Replies: 1
    Last Post: 10-13-2012, 04:50 AM
  2. Replies: 1
    Last Post: 04-25-2012, 07:11 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
  •