View Full Version : ATI AMD 8xxxHD Series: installing ATI OpenCL with Pyrit

2013-11-12, 20:36
Finally I got to work my discrete AMD Radeon HD 8730M with Pyrit through OpenCL.

1. Remove previus fglrx driver (if have one)

apt-get remove fglrx*

2. Install dependencies

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)

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

5. Add radeon.modeset=0 to grub.cfg

vim /boot/grub/grub.cfg
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

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/ (http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/)

tar xvfz AMD-APP-SDK-v2.9-lnx64.tgz

9. Add variables for AMD APP SDK

vim ~/.bashrc
# add this lines:

10. reboot

11. Install Pyrit and Cpyrit-OpenCL

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

pyrit list_cores
pyrit benchmark

If black screen after reboot or some other crush:
boot into console mode and uninstall AMD driver

./amd-catalyst-13.11-beta6-linux-x86.x86_64.run --uninstall
rm /etc/X11/xorg.conf

You can switch your Xserver between cards (restart required):

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

2013-11-25, 08:01
What repos are you using? dh-modaliases seems to be missing on mine

2013-11-26, 20:23
I'm using standard repos, but I added some extra packet, so it likely unwanted
ps. removed it from post

2014-06-30, 09:38
error amd catalyst 14.6 beta drivers(current): gpu not supported.

my graphic card is AMD Radeon HD 8730M

2014-07-05, 06:26
Kali version ???

2014-12-29, 14:11
hi, i have some problems with my ATI Radeon 8730M. I have installed drivers + AMD-APP-SDK-v2.9 + pyrit + cpyrit_opencl, but my GPU is no recognized. (I was trying also pyrit + cpyrit++ but there was some error when i was trying to run pyrit so i delete it). Installation went fine, there where no errors.

root@localhost:~# uname -a
Linux localhost 3.14-kali1-amd64 #1 SMP Debian 3.14.5-1kali1 (2014-06-07) x86_64 GNU/Linux

root@localhost:~# pyrit list_cores
Pyrit 0.4.1-dev (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: 'CPU-Core (SSE2/AES)'
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'

root@localhost:~# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon (TM) HD 8500M/8700M
OpenGL version string: 4.4.12874 Compatibility Profile Context 14.10.1006.1001

Could someone help me?

2014-12-29, 14:44
its absolutely heartbroken but there is no way for kernel >=3.14 and hybrid AMD Radeon 8500M/8700M.
maybe someday...

2014-12-29, 14:56
Thanks for reply! ... so i wasted 2 days for nothing ;-)