OpenCL implementation clCreateProgramWithBinary() on CUDA

–edit–

Please dont dismiss this as off-forum. The OpenCL forum is very thinly populated and I have no hopes of finding an answer there.


All,

I am trying to understand the rationale behind OpenCL APIs and how they would map to CUDA.

I have a question on the following API.

Concerned API:

Documentation of clCreateProgramWithBinary() API says:

"

"

Is this binary - native code like “cubin” OR “OpenCL compiler generated binary for that device?”.

The OpenCL specification does NOT say much on these lines.

If this is a native binary, OpenCL already allows a native form of execution via “clEnqueNativeKernel()” API.

Any thoughts?

If worse comes to worse, you could just try to decompile the file with decuda, and see if it works. :shifty:

Well, if I had the file I dont have a problem at all.

I am looking @ what the spec is saying… There r no OpenCL implementations released AFAIK

I guess you have found the answer already, but here goes anyway. Section 2.2.1 of the “OpenCL Programming Guide for the CUDA Architecture” version 3.1 reads:

I guess you have found the answer already, but here goes anyway. Section 2.2.1 of the “OpenCL Programming Guide for the CUDA Architecture” version 3.1 reads: