赞
踩
Ubuntu 查看显卡信息:
lspci -vnn | grep VGA -A 12
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:5917] (rev 07) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device [17aa:39ad]
Flags: bus master, fast devsel, latency 0, IRQ 125
Memory at a2000000 (64-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 6000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 08)
安装官方的包:
sudo apt install ocl-icd-libopencl1
sudo apt install opencl-headers
sudo apt install clinfo
sudo apt install ocl-icd-opencl-dev
sudo apt install beignet
在网站https://github.com/intel/compute-runtime/releases 内下载相应的安装包:
wget https://github.com/intel/compute-runtime/releases/download/19.23.13131/intel-gmmlib_19.2.1_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.23.13131/intel-igc-core_1.0.8-2084_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.23.13131/intel-igc-opencl_1.0.8-2084_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.23.13131/intel-opencl_19.23.13131_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.23.13131/intel-ocloc_19.23.13131_amd64.deb
sudo apt-get install -y rpm alien libnuma1
sudo dpkg -i *.deb
安装失败的话,一个一个地安装,多次重复,确保前面的依赖成功安装
参考来自:
https://blog.csdn.net/qingsong1001/article/details/92761773
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。