ubuntu14.04使用ATI显卡,安装opencl并使用cgminer的方法(原创)

(0)安装ati linux显卡驱动

使用14.04-14.12之间的驱动

配置显卡驱动文件

aticonfig --adapter=all --odgt
aticonfig --adapter=all --initial


重启


(1)下载AMD相关软件:

AMD-APP-SDK-v2.9-lnx32.tgz
(http://developer.amd.com/amd-license-agreement/?f=AMD-APP-SDK-v2.9-lnx32.tgz)
ADL_SDK_5.0.zip
(2)下载cgminer:
cgminer-3.1.0.tar.bz2
(3)安装依赖包,并编译cgminer
cd /opt
tar -zxvpf /root/AMD-APP-SDK-v2.9-lnx32.tgz
./Install-AMD-APP.sh
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libncurses5-dev
sudo apt-get install subversion git-core
sudo apt-get install lib32gcc1 libc6-i386 lib32gcc1 libc6-i386 dkms openssh-server screen
sudo apt-get install git autoconf libtool pkg-config yasm make
sudo apt-get install curl
sudo apt-get install fglrx fglrx-amdcccle fglrx-dev
sudo apt-get install libusb
sudo apt-get install libusb-dev
cd ADL_SDK
cp -R include/* /root/cgminer-3.1.0/ADL_SDK/
./configure –prefix=/usr/local/cgminer –enable-opencl –enable-maintainer-mode –enable-scrypt –enable-cpumining –enable-icarus –enable-modminer –enable-avalon
make

make install

(4)配置opencl环境

vi /etc/OpenCL/vendors/amdocl32.icd
/usr/lib/i386-linux-gnu/libamdocl32.so

vi /etc/OpenCL/vendors/amdocl64icd
/usr/lib/libamdocl64.so

//使显卡最大使用率100%

export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1

(5)附注

推荐安装的额外软件

apt-get install dpkg-dev dh-make execstack dh-modaliases loki

apt-get install libwxgtk2.8-0 libwxbase2.8-0


你可能感兴趣的:(linux,网络)