Install OpenCL on Backtrack 及BT5安装ATI驱动

Install OpenCL on Backtrack

This article was contributed by g0tmi1k.


  • In this guide we will be installing and configuring OpenCL on Backtrack.

NOTE: You might need to make some minor tweaks depending on your system.

Let's begin:

  • First of all before we start we want to make sure that our system is up to date.
root@bt:~# apt-get update && apt-get upgrade
  • Before we go on with installing the ATI drivers we need to get our kernel source prepared.
root@bt:~# prepare-kernel-sources
root@bt:~# cd /usr/src/linux
root@bt:~# cp -rf include/generated/* include/linux/
  • Now that we are set up it's time to download the ATI drivers.
root@bt:~# wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-9-x86.x86_64.run
root@bt:~# chmod +x ati-driver-installer-11-9-x86.x86_64.run
root@bt:~# ./ati-driver-installer-11-9-x86.x86_64.run
root@bt:~# reboot


Opencl01.png


  • Before we are finished there is one more thing that we need to install, The AMD Accelerated Parallel Processing (APP) SDK, this one needs to be installed according to your CPU architecture.

For 32 bit architecture:

root@bt:~# wget http://developer.amd.com/Downloads/AMD-APP-SDK-v2.5-lnx32.tgz 
root@bt:~# tar -xvzf AMD-APP-SDK-v2.5-lnx32.tgz
root@bt:~# ./Install-AMD-APP.sh

For 64 bit architecture:

root@bt:~# wget http://developer.amd.com/Downloads/AMD-APP-SDK-v2.5-lnx64.tgz 
root@bt:~# tar -xvzf AMD-APP-SDK-v2.5-lnx64.tgz
root@bt:~# ./Install-AMD-APP.sh
  • We will also need cmake and cmake++ along with some other library files.

First we install the libraries and cmake:

root@bt:~# apt-get install libroot-python-dev libboost-python-dev zlib1g-dev libssl-dev cmake libboost1.40-all-dev

Before we can install cmake++ we need to set the ATI Stream paths:

root@bt:~# echo "ATISTREAMSDKROOT=/opt/AMDAPP
root@bt:~# export ATISTREAMSDKROOT" >> ~/.bashrc
root@bt:~# source ~/.bashrc

Now we can proceed with the installation:

root@bt:~# svn co https://calpp.svn.sourceforge.net/svnroot/calpp calpp
root@bt:~# cd calpp/trunk
root@bt:~# cmake .


Opencl02.png


root@bt:~# make
root@bt:~# make install
  • In addition now we can install Pyrit with the OpenCL option.
root@bt:~# svn checkout http://pyrit.googlecode.com/svn/trunk/ /tmp/pyrit
root@bt:~# cd /tmp/pyrit/pyrit && python setup.py build && python setup.py install
root@bt:~# cd /tmp/pyrit/cpyrit_opencl && python setup.py build && python setup.py install
  • Now we can test Pyrit.
root@bt:~# pyrit list_cores
root@bt:~# pyrit benchmark


Opencl03.png

 

 

转载自:http://www.backtrack-linux.org/wiki/index.php/Install_OpenCL

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值