It looks fine to me, but I'm worried whether it can work properly in the end. A few months ago I worked on Cuda support for something (I implemented nvcuda.dll which is what cuda runtime libraries like cudart or physx are using). Certain lowlevel nvcuda applications worked, but more fancy applications didn't. I had some contact with Nvidia about it and it was not possible to support Cuda without assistance on their side.
OpenCL is a little different of course, but I fear that not all OpenCL implementations will like wrapping. What OpenCL applications have you tried so far? The Nvidia GPU Computing SDK (or whatever it was called) has a ton of samples for both Cuda and OpenCL. Do all their OpenCL samples work?
Roderick
On Mon, Nov 29, 2010 at 2:39 PM, Peter Urbanec winehq.org@urbanec.net wrote:
Resending because previous patch was mangled by Thunderbird.
dlls/opencl/opencl.c | 1142 +++++++++++++++++++++++++++++++++++++++++++++++ dlls/opencl/opencl.spec | 159 ++++--- 2 files changed, 1232 insertions(+), 69 deletions(-)