Reference Link: https://www.jianshu.com/p/ad808584ce26
Installing OpenCL
OpenCL is a series of libraries and header files that need to be installed according to the hardware of the SDK, that is, if you want to use Intel CPU as a parallel device, you must install the Intel SDK, if you use the NVIDIA GPU as a parallel device, you must install the Nvidia SDK. Here are the configuration methods for running OpenCL on Intel CPUs and Nvidia GPUs, which can be selected according to your own hardware, noting that the virtual machine is not capable of using NVIDIA devices. The Novice recommends using the Intel SDK, easy to install and less likely to crash the system.
Clinfo is a software that displays the OpenCL platform and device, and after installation, it can be verified at the command line by entering Clinfo.
sudo apt-get install clinfo
Intel SDK
First extract the tgz file somewhere.
Installation dependencies
sudo apt install dkms xz-utils openssl libnuma1 libpciaccess0 bc curl libssl-dev lsb-core libicu-devsudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EFecho "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.listsudo apt-get updatesudo apt-get install mono-complete
Enter the directory and start the installation
sudo sh install_GUI.sh
Follow the prompts to install, you may be prompted to "Unsupported OS" and click Next to ignore it.
When installing to the "Installation Summary" page, click on "Customize" to customize the installation component and select all components except "Set of OpenCL (TM) files for android* target".
Ignore missing Libraries,next Continue, click Install Installation.
After installation, enter clinfo on the command line to see the platform and the device.
clinfo
Nvidia
View devices and drivers:
sudo unbuntu-drivers devices
According to the listed Nvidia devices to select the driver version, the old version does not support the new GPU, again, the new version may not support the old GPU, can go to the NVIDIA official network to view the driver version supported devices, such as the 367 version of the Supported Devices list is: http://www.geforce.cn /drivers/results/108769
sudo apt-get install nvidia-<version here># <version here>表示要安装的版本,比如若需要安装361版,则输入# sudo apt-get install nvidia-361
# 我的外星人GPU为GTX590,注意看367的支持列表中有GTX590,所以sudo apt-get install nvidia-367即可
Installing OpenCL-related packages
sudo apt-get install nvidia-<version here>-uvm nvidia-opencl-dev nvidia-modprobe nvidia-libopencl1-<version here> nvidia-opencl-icd-<version here>
Installing CUDA Toolkit
sudo apt-get install nvidia-cuda-toolkit
Once the installation is complete, enter clinfo on the command line to see that the Nvidia platform and GPU devices have been found.
clinfo
Mikeday
Links: Https://www.jianshu.com/p/ad808584ce26
Source: Pinterest
The copyright of the book is owned by the author, and any form of reprint should be contacted by the author for authorization and attribution.
ubuntu16.04 Installing OpenCL