PDA

View Full Version : New feature request : kernel parameters as 'static' !



polar01
09-13-2011, 12:53 AM
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 :-P Even if today it is more important to have stable OpenCL drivers !

david.garcia
09-13-2011, 04:10 PM
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.