PDA

View Full Version : OpenCL 1.2


kugeleck
09-26-12, 10:25 AM
Hello,

I would have asked this question on the NVIDIA developer forum but since it's still down maybe someone here can tell me something.

Does anybody know if there is already OpenCL 1.2 support in NVIDIAs driver? If not, is it coming soon?

According to http://en.wikipedia.org/wiki/Comparison_of_Nvidia_graphics_processing_units#GeF orce_600_Series there are already some GeForce cards that could support it.

It somewhat seems like NVIDIA does not mention OpenCL a whole lot anymore and just focuses on CUDA C/C++ (see http://www.streamcomputing.eu/blog/2012-09-10/nvidias-industry-leading-support-for-opencl/). I guess it makes sense to them but I would like to see some more OpenCL love.

Thanks
kugeleck

kugeleck
10-28-12, 07:22 AM
During a CUDA 5 webinar I asked about OpenCL 1.2. Nvidia's reply was something like: "We have not made any announcement concerning OpenCL 1.2".

Maybe they will support OpenCL 1.2 one day maybe not...

lostdistance
04-19-14, 07:41 AM
At last there is some hard evidence of forthcoming OpenCL 1.2 support from Nvidia.

The recently released CUDA 6 toolkit (for Linux) includes an OpenCL stub library libOpenCL.so which contains all the new OpenCL 1.2 functions plus some other Nvidia functions.

Specifically, the new libOpenCL.so stub library adds the following functions compared to the 337.12 driver release:

clCompileProgram (OpenCL 1.2)
clCreateFromGLTexture (Nvidia)
clCreateImage (OpenCL 1.2)
clCreateProgramWithBuiltInKernels (OpenCL 1.2)
clCreateSubDevices (OpenCL 1.2)
clEnqueueBarrierWithWaitList (OpenCL 1.2)
clEnqueueFillBuffer (OpenCL 1.2)
clEnqueueFillImage (OpenCL 1.2)
clEnqueueMarkerWithWaitList (OpenCL 1.2)
clEnqueueMigrateMemObjects (OpenCL 1.2)
clGetExtensionFunctionAddressForPlatform (Nvidia)
clGetKernelArgInfo (OpenCL 1.2)
clLinkProgram (OpenCL 1.2)
clReleaseDevice (OpenCL 1.2)
clRetainDevice (OpenCL 1.2)
clUnloadPlatformCompiler (OpenCL 1.2)

Unfortunately the CUDA 6 toolkit does not contain the actual OpenCL implementation library libnvidia-opencl.so. The 337.12 driver release libnvidia-opencl.so does not seem to support the new functions: when I tried to use clCreateImage() in place of clCreateImage2D() my program crashed.