Finally I got to work my discrete AMD Radeon HD 8730M with Pyrit through OpenCL.
1. Remove previus fglrx driver (if have one)
Code:
apt-get remove fglrx*
2. Install dependencies
Code:
apt-get install kernel-package ncurses-dev bzip2 dpkg-dev lib32gcc1 libc6-i386 dkms python-dev python-scapy linux-source
apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 libqtgui4 execstack libelfg0 ia32-libs libcap-dev
3. Install ATI beta driver (13.11 at the moment)
Code:
wget -c www2.ati.com/drivers/beta/amd-catalyst-13.11-beta6-linux-x86.x86_64.zip
unzip amd-catalyst-13.11-beta6-linux-x86.x86_64.zip
chmod +x amd-catalyst-13.11-beta6-linux-x86.x86_64.run
./amd-catalyst-13.11-beta6-linux-x86.x86_64.run
5. Add radeon.modeset=0 to grub.cfg
Code:
vim /boot/grub/grub.cfg
replace:
linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=a035fc49-0b80-430b-bb37-913c9cc04124 ro initrd=/install/gtk/initrd.gz quiet
with (UID and version may by different!):
linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=a035fc49-0b80-430b-bb37-913c9cc04124 ro initrd=/install/gtk/initrd.gz quiet radeon.modeset=0
6. reboot
7. Remove old Pyrit
Code:
apt-get remove pyrit
rm -rf /root/.pyrit /usr/local/bin/pyrit /usr/local/lib/python2.7/dist-packages/cpyrit* /usr/local/lib/python2.7/dist-packages/pyrit*
8. Download and install AMD APP SDK
get the last version at: developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
Code:
tar xvfz AMD-APP-SDK-v2.9-lnx64.tgz
./Install-AMD-APP.sh
9. Add variables for AMD APP SDK
Code:
vim ~/.bashrc
# add this lines:
export AMDAPPSDKROOT=/opt/AMDAPP
export AMDAPPSDKSAMPLESROOT=/opt/AMDAPP/samples
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}
export ATISTREAMSDKROOT=$AMDAPPSDKROOT[/I]
10. reboot
11. Install Pyrit and Cpyrit-OpenCL
Code:
svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
cd pyrit_svn/pyrit
./setup.py build
./setup.py install
cd ../cpyrit_opencl/
./setup.py build
./setup.py install
12. Test GPU
Code:
pyrit list_cores
pyrit benchmark
TROUBLESHOOTING:
If black screen after reboot or some other crush:
boot into console mode and uninstall AMD driver
Code:
./amd-catalyst-13.11-beta6-linux-x86.x86_64.run --uninstall
rm /etc/X11/xorg.conf
reboot
ps.
You can switch your Xserver between cards (restart required):
Code:
aticonfig --pxl # List current activated GPU
aticonfig --px-dgpu # Activate discrete GPU (High-Performance mode)
aticonfig --px-igpu # Activate integrated GPU (Power-Saving mode)
However, Pyrit will work in both modes