Reputation: 132128
In OpenCL, the clLinkProgram()
function takes (among other things)
cl_context
context handle;cl_program
handles of program objects.Now, a cl_program
is always created in a context; and unless I'm mistaken, all programs being linked must share the same context. It should therefore be possible to just obtain the programs' context handle.
So: Is the context handle parameter of clLinkProgram()
redundant?
Upvotes: 0
Views: 13