bkloppenborg / liboi

OpenCL Interferometry Library
https://github.com/bkloppenborg/liboi/wiki
GNU Lesser General Public License v3.0
5 stars 6 forks source link

Switch to OpenCL Installable Client Drivers #33

Closed bkloppenborg closed 10 years ago

bkloppenborg commented 11 years ago

Installable Client Drivers for OpenCL are being released by NVidia, Intel and AMD/ATI. liboi should link against these instead of vendor-specific OpenCL implementations. This might involve rewriting the COpenCL class to use different context initialization functions.

bkloppenborg commented 11 years ago

Doing a little research on this, on Ubuntu one needs to install the following packages:

opencl-headers - installs /usr/include/CL/* files with current OpenCL specs
ocl-icd-dev - installs /usr/include/ocl_icd.h
ocl-icl-libopencl1 - installs genetic OpenCL ICD loader
ocl-icl-opencl-dev - installs a few additional things... not sure what they do yet.

I'm not yet sure if one should use the CL/cl.h or ocl_icd.h include in their program. No idea on how this works on Windows yet either.

bkloppenborg commented 11 years ago

Support information from device providers:

bkloppenborg commented 10 years ago

It appears the way COpenCL is written it already supports ICDs. At present the user cannot choose the OpenCL device (the code picks the first GPU by default) though.