Ubuntu 安装 opencl问题汇总

1.安装cuda

2.安装Intel sdk

安装依赖

sudo apt install dkms xz-utils openssl libnuma1 libpciaccess0 bc curl libssl-dev lsb-core libicu-dev
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete

下载sdk:https://registrationcenter.intel.com/en/products/postregistration/?sn=CD38-399ZZFHK&EmailID=716600596%40qq.com&Sequence=2518794&dnld=t

解压安装

sudo ./install.sh

如果出现下面问题:

X server found. dri2 connection failed!
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
...

解决方法:

 sudo apt-get remove beignet*

3.查看是否安装成功,安装clinfo

sudo apt-get install clinfo

查看平台信息,输入指令

clinfo

 

你可能感兴趣的:(opencl)