root@bt:~# lspci |grep VGA
01:00.0 VGA compatible controller: ATI Technologies Inc RV730 PRO [Radeon HD 4650]
preparing kernel source bt5 – cara ke 1 (pilih salah satu)
root@bt:~# prepare-kernel-sources
root@bt:~# cd /usr/src/linux
root@bt:~# cp -rf include/generated/* include/linux/
preparing kernel source bt5 – cara ke 2 (pilih salah satu)
root@bt:~# apt-get install linux-headers-`uname -r`
download dan install ati driver, kalo bisa install di init 3 yaa mas.
root@bt:~# wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
root@bt:~# sh ati-driver-installer-11-6-x86.x86_64.run
download app-amd sdk deb
root@bt:~# wget http://backtrack.indowebster.com/other/video/ati/sdk/amd-app_2.4_i386.deb
root@bt:~# dpkg -i amd-app_2.4_i386.deb
download ATI SDK buat AMD 32 di sini : http://developer.amd.com/Downloads/AMD-APP-SDK-v2.4-lnx32.tgz
extract ATI SDK di /root/
root@bt:~# tar -xf AMD-APP-SDK-v2.4-lnx32.tgz
root@bt:~# cd AMD-APP-SDK-v2.4-lnx32
root@bt:~/AMD-APP-SDK-v2.4-lnx32# tar -xf icd-regisration.tgz -C /
dan add env ke bashrc pada line terakhir
root@bt:~# nano /root/.bashrc
# ATI SDK export
export AMDAPPSDKROOT=/root/AMD-APP-SDK-v2.4-lnx32
export AMDAPPSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx32/samples
export LD_LIBRARY_PATH=$AMDAPPSDKROOT/lib/x86
export ATISTREAMSDKROOT=$AMDAPPSDKROOT
coba jalankan di terminal baru, salah satu binary HelloCL untuk ngetest bahwa SDK sudah pasang dengan baik, liat contoh berikut.
root@bt:~/AMD-APP-SDK-v2.4-lnx64/samples/opencl/bin/x86# ./HelloCL
HelloCL!
Getting Platform Information
Creating a context AMD platform
Getting device info
Loading and compiling CL source
Running CL program
Done
Passed!
jika output lain (fail) yang keluar, berarti gagal, ulangi step nya :D
——————————————–
install libboost1.40-all-dev & cmake
root@bt:~# apt-get install libboost1.40-all-dev cmake
jika pas install cmake ada masalah “unmet dependencies”, remove dulu cmake nya, ganti source list ke ubuntu lucid resmi, lalu ulangi install cmake.
grab svn calapp
root@bt:~# svn co https://calpp.svn.sourceforge.net/svnroot/calpp calpp
install calapp,
root@bt:~# cd calapp/trunk
root@bt:~/calapp/trunk# cmake .
root@bt:~/calapp/trunk# make
root@bt:~/calapp/trunk# make install
grab pyrit dari svn,
root@bt:~# svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit
install pyrit
root@bt:~# cd pyrit/pyrit
root@bt:~/pyrit/pyrit# apt-get install libssl-dev
root@bt:~/pyrit/pyrit# ./setup.py build
root@bt:~/pyrit/pyrit# ./setup.py install
install cpyrit_calapp
root@bt:~/pyrit/pyrit# cd ../cpyrit_calpp/
root@bt:~/pyrit/cpyrit_calapp# apt-get install libboost-python-dev
sebelum install, ganti versi cpyrit_calapp ke 0.41-dev, kalo enggak bakal error setiap jalanin pyrit, karena unmet version.
root@bt~/pyrit/cpyrit_calapp# gedit setup.py
VERSION = '0.4.0-dev' <- line 28 ganti ke VERSION = '0.4.1-dev' sesuai pyrit_cpu
install cpyrit_calapp
root@bt:~/pyrit/cpyrit_calapp# ./setup.py build
root@bt:~/pyrit/cpyrit_calapp# ./setup.py install
done! sekarang liat list_cores.
root@bt:~# pyrit list_cores
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3+
The following cores seem available...
#1: 'CAL++ Device #1 'ATI RV730'
#2: 'CPU-Core (SSE2)' yihaaa! Good Luck! ;p
pyrit, ATI, dan BT5 32 BIT.
Subscribe to:
Post Comments
(
Atom
)
0 komentar :
Post a Comment
Silahkan meluangkan waktu anda untuk meninggalkan secuil komentar anda pada Form komentar di bawah ini...