cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

sajis997
Adept I

context and program creation

Hi forum,

How many program object are we allowed to create in a single context ?

Any example or case studies to this issue?

Regards

Sajjadul

0 Likes
3 Replies
himanshu_gautam
Grandmaster

Re: context and program creation

There are no hard limits. As much as you want to until you hit RAM/Virtual address/Disk limit- I believe

0 Likes
sajis997
Adept I

Re: context and program creation

Thanks,

OpenCL program object is the container for all the kernel functions that the user want to compile.

I am developing with a single context. Do you think it is necessary in any way to give provision to create several program objects on single context ?

Have you ever encountered any scenario where you need to create several program object on a single context?

Regards

Sajjadul

0 Likes
himanshu_gautam
Grandmaster

Re: context and program creation

There are no hard and fast rules for creating more than 1 program object... It is just a matter of convenience.

Once the kernel objects are created, it really does not matter which program object it came from... You can just set the args and fire up the kernels...

If you are using many 3rd party OpenCL libraries, then each one might create its own program on a user-supplied context....

As I said before, it is just a matter of convenience...There is no need to look at this so hard. There is nothing there.. It is an "upto the programmer and the application" thing...

0 Likes