Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
opencl [2015/06/22 20:48]
slackermedia
opencl [2021/06/03 19:48] (current)
Line 1: Line 1:
-[[{arrowp.png|border:​0;​background:​none;​width:​0;​display:​inline-block;​position:​absolute;​top:​0;​left:​0;​}natron|]] +======OpenCL======
- +
-[[{arrown.png|border:​0;​background:​none;​width:​0;​display:​inline-block;​position:​absolute;​top:​0;​margin-left:​2.5em;​}opencolorio|]]+
  
 OpenCL is an open framework that enables a computer to recruit all manner of other computational devices (such as a GPU and additional CPUs) to distribute a workload. Depending on the hardware you have available, OpenCL can speed up graphics processing by orders of magnitude. OpenCL is an open framework that enables a computer to recruit all manner of other computational devices (such as a GPU and additional CPUs) to distribute a workload. Depending on the hardware you have available, OpenCL can speed up graphics processing by orders of magnitude.
Line 59: Line 57:
 **Headers** **Headers**
  
-<WRAP indent>+
 Whether you intend to develop applications using OpenCL or not, in order to build and install OpenCL-capable applications,​ you need the OpenCL header files. Whether you intend to develop applications using OpenCL or not, in order to build and install OpenCL-capable applications,​ you need the OpenCL header files.
  
 OpenCL headers are available from [[http://​slackbuilds.org]]. OpenCL headers are available from [[http://​slackbuilds.org]].
-</​WRAP>​+
  
 **OpenCL Library** **OpenCL Library**
  
-<WRAP indent>+
 OpenCL libraries (the ''​.so''​ files in ''/​usr/​lib*''​) mainly come from Nvidia and AMD (other vendors have implementations,​ but these are the most-used libs, since these are the two most common high-end graphic cards). OpenCL being an open standard, it does not actually matter which library you use. In fact, the OpenCL library you end up with will most likely be dictated by the GPU you have in your computer; the OpenCL library will come along with the driver that you install. OpenCL libraries (the ''​.so''​ files in ''/​usr/​lib*''​) mainly come from Nvidia and AMD (other vendors have implementations,​ but these are the most-used libs, since these are the two most common high-end graphic cards). OpenCL being an open standard, it does not actually matter which library you use. In fact, the OpenCL library you end up with will most likely be dictated by the GPU you have in your computer; the OpenCL library will come along with the driver that you install.
 +
 +Your OpenCL driver of choice is (ie, ''​libcl''​ or ''​libopencl''​) loads an **Installable Client Driver** (defined by an ''​.icd''​ file). The ICD Loader enables an OpenCL application to access all platforms and all devices present in the system, so if you have devices by more than one vendor in your computer (and it's likely that you do), it's to your advantage to define them all.
  
 Therefore, to get the OpenCL library, install a driver for your graphics card and, if available, for your CPU: Therefore, to get the OpenCL library, install a driver for your graphics card and, if available, for your CPU:
Line 75: Line 75:
   * AMD drivers, such as they are, are available from [[http://​amd.com]].   * AMD drivers, such as they are, are available from [[http://​amd.com]].
   * For Intel CPUs and graphic chips, generic drivers come bundled with the Intel Media Server Studio package. This requires registration with Intel and an email verification containing the actual download link. One downloaded, the libraries are located in ''​MediaServerStudioEssentials*/​SDK20*ProductionX.Y*/​Generic''​. For more specific device drivers, see [[https://​software.intel.com/​en-us/​articles/​opencl-drivers]].   * For Intel CPUs and graphic chips, generic drivers come bundled with the Intel Media Server Studio package. This requires registration with Intel and an email verification containing the actual download link. One downloaded, the libraries are located in ''​MediaServerStudioEssentials*/​SDK20*ProductionX.Y*/​Generic''​. For more specific device drivers, see [[https://​software.intel.com/​en-us/​articles/​opencl-drivers]].
-</​WRAP>​+ 
  
 **Installable Client Drivers (ICD)** **Installable Client Drivers (ICD)**
  
-<WRAP indent> + 
-It's possible to install multiple vendor-specific implementations of OpenCL technology on the same machine, at the same time. Your OpenCL driver of choice is (ie, ''​libcl''​ or ''​libopencl''​) loads an **Installable Client Driver** (defined by an ''​.icd''​ file). The ICD Loader enables an OpenCL application to access all platforms and all devices present in the system, so if you have devices by more than one vendor in your computer (and it's likely that you do), it's to your advantage to define them all.+It's possible to install multiple vendor-specific implementations of OpenCL technology on the same machine, at the same time. 
  
 After you have installed your primary OpenCL driver, you should find that an ''​.icd''​ file exists in ''/​etc/​OpenCL/​vendors/''​. The contents of the ''​.icd''​ files is straightforward:​ After you have installed your primary OpenCL driver, you should find that an ''​.icd''​ file exists in ''/​etc/​OpenCL/​vendors/''​. The contents of the ''​.icd''​ files is straightforward:​
Line 98: Line 99:
   * Nvidia &#47; libnvidia-opencl.so   * Nvidia &#47; libnvidia-opencl.so
   * Intel &#47; libintelocl.so   * Intel &#47; libintelocl.so
-</​WRAP>​+
  
 ===== Nvidia-modprobe ===== ===== Nvidia-modprobe =====
Line 141: Line 142:
 </​WRAP>​ </​WRAP>​
  
-[[{arrown.png|border:​0;​background:​none;​width:​0;​display:​inline-block;​float:​right;​}opencolorio|]][[{arrowp.png|border:​0;​background:​none;​width:​0;​float:​right;​}natron|]]+<WRAP centeralign>​ 
 +<wrap fa>[[obs|R]]</​wrap>​ <wrap fa>[[start|S]]</​wrap>​ <wrap fa>​[[opencolorio|Q]]</​wrap>​ 
 +</​WRAP>​