ubuntu 16.04 amd显卡安装

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/aniuge008/article/details/79099072

1.下载amd显卡驱动amd-pro-install

http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx

 

2.安装驱动

./amdgpu-pro-install –y --opencl=legacy

 

使用 VDPAU,支持vlc 4k播放

sudo ln -s /opt/amdgpu-pro/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1/usr/lib/x86_64-linux-gnu/vdpau/

sudo ln -s/opt/amdgpu-pro/lib/i386-linux-gnu/vdpau/libvdpau_amdgpu.so.1/usr/lib/i386-linux-gnu/vdpau/

 

(或者

export VDPAU_DRIVER_PATH=/opt/amdgpu-pro/lib/x86_64-linux-gnu/vdpau

运行

vdpauinfo

安装clinfo

 

sudousermod -a -G video $LOGNAME

sudoapt install clinfo

sudoclinfo

sudoclinfo | grep compute

sudoln -s /opt/amdgpu-pro/bin/clinfo /usr/local/bin/


3.安装opencl sdk

3.1下载

https://developer.amd.com/tools-and-sdks/opencl-zone/

 

3.2解决链接缺失错误

/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so链接有问题,需要手动和/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so建立链接

ln -s /opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so /opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so

 

Vi /etc/OpenCL/vendors

Vi amdocl32.icd

/usr/lib/i386-linux-gnu/libamdocl32.so

Vi amdocl64.icd

/usr/lib/libamdocl64.so

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页