Results 1 to 11 of 11

Thread: (Guide) Installing Fglrx + OpenCL + Pryit for AMD Video cards

  1. #1
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315

    (Guide) Installing Fglrx + OpenCL + Pryit for AMD Video cards

    Hi all,

    I've seen a few posts now with people having issues getting their AMD card to work on 1.0.9. I've made a short guide on how to install Fglrx and all the other good stuff to run pyrit and oclhashcat under OpenCL.

    Edit: I've also now written a post on how to use cal++ and the latest AMD (14.4.2) driver on Kali 1.0.9. Cal++ has shown itself to be much faster than OpenCL. It's harder to install but I've made some easy to follow step by steps. Use the guide https://forums.kali.org/showthread.p...MD-Video-Cards for cal++ or alternatively continue with what's below if you want an easy performance boost with OpenCL. However, it's not as large as cal++.

    This is the non-free AMD Catalyst driver. The following cards / series are supported by the (at time of writing) latest 14.4.2 driver in the Kali repo.

    AMD Radeon R9 Series, AMD Radeon R7 Series, AMD Radeon HD 8000, AMD Radeon HD 7000, AMD Radeon HD 6000, and AMD Radeon HD 5000

    For reference, I've written this on an older i2600k running an AMD Radeon HD 6970 which has Kali 1.0.9 installed.

    1. Install and update Kali 1.0.9
    Code:
    apt-get update && apt-get upgrade && apt-get dist-upgrade
    2. Install kali headers
    Code:
    apt-get install linux-headers-$(uname -r)
    3. Install the driver
    Code:
    apt-get install fglrx-driver fglrx-atieventsd fglrx-control
    4. Build the xorg config file
    Code:
    aticonfig --initial
    5. Reboot
    Code:
    shutdown -r now
    6. fglrx will now be in the loaded modules
    Code:
    lsmod
    7. Install a bunch of things we will need for later
    Code:
     apt-get install libpcap-dev python-dev libssl-dev
    8. Download and start building pyrit
    Code:
    cd ~
    
    svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
    
    cd pyrit_svn/pyrit/
    
    python setup.py build
    python setup.py install
    
    cd ../cpyrit_opencl
    9. Install the OpenCL stuff we need
    Code:
    apt-get install amd-opencl-icd amd-opencl-dev
    10. Build the OpenCL stuff for pyrit
    Code:
    python setup.py build
    python setup.py install
    11. Test pyrit and you should see your OpenCL device
    Code:
    pyrit list_cores
    12. Benchmark it
    Code:
    pyrit benchmark
    That's it. It's really that simple to use AMD cards with OpenCL.
    Last edited by staticn0de; 2014-09-20 at 04:32.
    chown -R us ./base

  2. #2
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    I've also tested this with oclhashcat. You will receive an error about an unsupported video driver. It still works with the --force parameter.
    Last edited by staticn0de; 2014-09-19 at 09:12.
    chown -R us ./base

  3. #3
    Join Date
    2013-Mar
    Posts
    57
    Hi,

    OpenCL works without problems for me, CAL++ not
    I have done some testing with Kali driver from Repo and Debian Sid (I have nothing to do and CAL++ is not working for me right now so...)

    Card is PowerColor PCS+ R9 290X
    http://www.tomshardware.com/reviews/...view,3803.html

    pyrit benchmark_long - 3 times and took the best result (card only!)
    Driver Repo SDK PMKs/s
    14.10.1006.1001 kali v2.9-1.599.381 #1: 'OpenCL-Device 'Hawaii'': 97168.3 PMKs/s (RTT 1.8)
    14.201.1006.1002 debian sid v2.9-1.599.381 #1: 'OpenCL-Device 'Hawaii'': 101031.7 PMKs/s (RTT 1.8)
    seems to me that the newer driver has a little bit more performance
    Last edited by tr00n3r; 2014-09-23 at 15:37.

  4. #4
    Join Date
    2014-Apr
    Location
    Down Under
    Posts
    315
    Quote Originally Posted by tr00n3r View Post
    Hi,

    OpenCL works without problems for me, CAL++ not
    I have done some testing with Kali driver from Repo and Debian Sid (I have nothing to do and CAL++ is not working for me right now so...)

    Card is PowerColor PCS+ R9 290X
    http://www.tomshardware.com/reviews/...view,3803.html

    pyrit benchmark_long - 3 times and took the best result (card only!)
    Driver Repo SDK PMKs/s
    14.10.1006.1001 kali v2.9-1.599.381 #1: 'OpenCL-Device 'Hawaii'': 97168.3 PMKs/s (RTT 1.8)
    14.201.1006.1002 debian sid v2.9-1.599.381 #1: 'OpenCL-Device 'Hawaii'': 101031.7 PMKs/s (RTT 1.8)
    seems to me that the newer driver has a little bit more performance
    Thanks for posting your stats!

    It's kind of sad that OpenCL cripples the power of a 290x to only just more than my couple of year old HD6970. I need to keep working on Cal++ for my 290x.
    chown -R us ./base

  5. #5
    Join Date
    2014-Oct
    Posts
    5
    excellent thread just installed this with no errors or problems good work

  6. #6
    Join Date
    2015-May
    Posts
    3
    So first thank you, your tutorial got me farther than the hours i spent reading other, I finally got pyrit to actually "see" my GPU. Then when I bench mark i get this, any thoughts?
    Code:
    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+
    
    Calibrating... Exception in thread OpenCL-Device 'Hawaii':
    Traceback (most recent call last):
      File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
        self.run()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 113, in run
        self._testComputeFunction(101)
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 102, in _testComputeFunction
        self.solve(Core.TV_ESSID, [Core.TV_PW] * i))):
    SystemError: Failed to create command-queue (CL_OUT_OF_HOST_MEMORY)
    
    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
      File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
        self.run()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
        essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
        self._check_cores()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
        raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly
    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
      File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
        self.run()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
        essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
        self._check_cores()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
        raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly
    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
      File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
        self.run()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
        essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
        self._check_cores()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
        raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly
    
    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
      File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
        self.run()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
        essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
        self._check_cores()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
        raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly
    
    
    
    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
      File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
        self.run()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
        essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
        self._check_cores()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
        raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly
    
    Traceback (most recent call last):
      File "/usr/local/bin/pyrit", line 6, in <module>
        pyrit_cli.Pyrit_CLI().initFromArgv()
      File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 117, in initFromArgv
        func(self, **options)
      File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 1182, in benchmark
        cp.enqueue('foo', ['barbarbar'] * 500)
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 564, in enqueue
        self._check_cores()
      File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
        raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly

  7. #7
    Join Date
    2013-Mar
    Posts
    57
    hi,

    will this work also on Kali 2.0 (sana) - I have changed my card to a HD7990 - so now I need pyrit to test

  8. #8
    Join Date
    2014-Oct
    Posts
    7
    Hi there!

    I just bought my new machine and the only image I found from the official source was the new Kali 2016.1.
    I was unable to follow this or any other "how to" to install the amd drivers!

    I think the proble is the sources, as this new Kali has a lot less.

    Anyone have tried to install the cpiryt and opencl in this version? How?

    Tks!!

  9. #9
    Join Date
    2015-Apr
    Posts
    3

    but what's this to a newbie

    Quote Originally Posted by staticn0de View Post
    Hi all,

    I've seen a few posts now with people having issues getting their AMD card to work on 1.0.9. I've made a short guide on how to install Fglrx and all the other good stuff to run pyrit and oclhashcat under OpenCL.

    Edit: I've also now written a post on how to use cal++ and the latest AMD (14.4.2) driver on Kali 1.0.9. Cal++ has shown itself to be much faster than OpenCL. It's harder to install but I've made some easy to follow step by steps. Use the guide https://forums.kali.org/showthread.p...MD-Video-Cards for cal++ or alternatively continue with what's below if you want an easy performance boost with OpenCL. However, it's not as large as cal++.

    This is the non-free AMD Catalyst driver. The following cards / series are supported by the (at time of writing) latest 14.4.2 driver in the Kali repo.

    AMD Radeon R9 Series, AMD Radeon R7 Series, AMD Radeon HD 8000, AMD Radeon HD 7000, AMD Radeon HD 6000, and AMD Radeon HD 5000

    For reference, I've written this on an older i2600k running an AMD Radeon HD 6970 which has Kali 1.0.9 installed.

    1. Install and update Kali 1.0.9
    Code:
    apt-get update && apt-get upgrade && apt-get dist-upgrade
    2. Install kali headers
    Code:
    apt-get install linux-headers-$(uname -r)
    3. Install the driver
    Code:
    apt-get install fglrx-driver fglrx-atieventsd fglrx-control
    4. Build the xorg config file
    Code:
    aticonfig --initial
    5. Reboot
    Code:
    shutdown -r now
    6. fglrx will now be in the loaded modules
    Code:
    lsmod
    7. Install a bunch of things we will need for later
    Code:
     apt-get install libpcap-dev python-dev libssl-dev
    8. Download and start building pyrit
    Code:
    cd ~
    
    svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
    
    cd pyrit_svn/pyrit/
    
    python setup.py build
    python setup.py install
    
    cd ../cpyrit_opencl
    9. Install the OpenCL stuff we need
    Code:
    apt-get install amd-opencl-icd amd-opencl-dev
    10. Build the OpenCL stuff for pyrit
    Code:
    python setup.py build
    python setup.py install
    11. Test pyrit and you should see your OpenCL device
    Code:
    pyrit list_cores
    12. Benchmark it
    Code:
    pyrit benchmark
    That's it. It's really that simple to use AMD cards with OpenCL.

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package fglrx-driver is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'fglrx-driver' has no installation candidate
    E: Unable to locate package fglrx-atieventsd
    E: Unable to locate package fglrx-control

  10. #10
    Join Date
    2015-Apr
    Posts
    3
    http://unix.stackexchange.com/questi...-kali-2-0-sana

    This link above really helps if you are struggling to get AMD driver working with Kali 2.0

  11. #11
    Join Date
    2015-Apr
    Posts
    3
    root@kali:~/pyrit_svn/cpyrit_opencl# pyrit benchmark
    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+

    Calibrating... Exception in thread OpenCL-Device 'Hawaii':
    Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 113, in run
    self._testComputeFunction(101)
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 102, in _testComputeFunction
    self.solve(Core.TV_ESSID, [Core.TV_PW] * i))):
    SystemError: Failed to create command-queue (CL_OUT_OF_HOST_MEMORY)

    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
    self._check_cores()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly
    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
    self._check_cores()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly

    Exception in thread CPU-Core (SSE2/AES):
    Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 110, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 632, in _gather
    self._check_cores()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly


    Traceback (most recent call last):
    File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
    File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
    File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 1182, in benchmark
    cp.enqueue('foo', ['barbarbar'] * 500)
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 564, in enqueue
    self._check_cores()
    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 490, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
    SystemError: The core 'OpenCL-Device 'Hawaii'' has died unexpectedly
    root@kali:~/pyrit_svn/cpyrit_opencl#




    What does this mean, why is my GPU core dying? I worked hard to get this far, dropped out of hoping CALPP would work so reverted to trying to use OPENCL and, i have got as far as this. Any ideas?

Similar Threads

  1. (Guide) Installing fglrx 14.12 (omega) on Kali 1.1.0
    By staticn0de in forum How-To Archive
    Replies: 9
    Last Post: 2015-08-21, 05:45
  2. Replies: 43
    Last Post: 2015-06-22, 17:24
  3. ATI AMD 8xxxHD Series: installing ATI OpenCL with Pyrit
    By 3t3st3r in forum How-To Archive
    Replies: 7
    Last Post: 2014-12-29, 14:56
  4. Replies: 7
    Last Post: 2014-09-20, 03:28
  5. nvidia 'optimus' (2 video cards) on kali
    By Quest in forum Installing Archive
    Replies: 1
    Last Post: 2014-07-07, 09:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •