einpoklum
einpoklum

Reputation: 132128

Why does clLinkProgram take a context handle?

In OpenCL, the clLinkProgram() function takes (among other things)

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

Answers (0)

Related Questions