system up-to-date before starting the driver installation
#sudo apt update
#sudo apt dist-upgrade
#sudo reboot
System Check
#dpkg -l amdgpu-pro
Download
[URL]:http://support.amd.com/en-us/download[/URL]
[URL]:https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz[/URL]
[URL]https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.40-492261.tar.xz[/URL]
Extract
#cd /tmp
#tar -Jxvf amdgpu-pro-17.30-NNNNNN.tar.xz
Install
Install the packages, and
Allow installation of "unverified" packages from the AMDGPU-PRO archive.
#cd amdgpu-pro-17.30-NNNNNN
#./amdgpu-pro-install –y
#sudo reboot
Configure
#sudo usermod -a -G video $LOGNAME
Uninstalling the AMD GPU-PRO Driver
#amdgpu-pro-uninstall
Installing the Optional ROCm Component
This AMDGPU-Pro driver package ROCm component optionally installed Compute/OpenCL
#sudo apt install -y rocm-amdgpu-pro
Configuring the Optional ROCm Component
The LLVM_BIN environment variable needs to be set prior to running ROCm applications.
To set it temporarily when running an individual ROCm command, such as clinfo, use:
#env LLVM_BIN=/opt/amdgpu-pro/bin /opt/amdgpu-pro/bin/clinfo
To set it permanently for all bash and other sh-like shell users, you can use the following command:
#echo 'export LLVM_BIN=/opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.sh
See the Ubuntu Environment Variables Community Help for more information.
To set it permanently for all csh users, you can use the following command:
#echo 'setenv LLVM_BIN /opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.csh