Results 1 to 44 of 44

Thread: (Guide) Fglrx + AMD APP SDK + Pyrit + Cal++ for AMD Video Cards

Threaded View

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

    (Guide) Fglrx + AMD APP SDK + Pyrit + Cal++ for AMD Video Cards

    Hi all,

    This is an alternative to my other post where I explained how to install the OpenCL version of GPU support for pyrit / oclhashcat.

    While OpenCL is very easy to install, it is no where near as powerful as Cal++. Below are some statistics for my Radeon HD 6970

    Code:
    Pyrit Benchmark
    OpenCL 50595.56 PMKs/s (graphics card produced 49359.6 PMKs/s)
    
    Cal++ 82695.02 PMKs/s (graphics card produced 81675.5 PMKs/s)
    As can be seen, the Cal++ version is much faster.

    At time of writing, the latest versions of all software is being installed on a 64bit Kali 1.0.9. This includes:
    Code:
    Pyrit v308
    AMD APP SDK 2.9-1
    Fglrx 14.4.2
    Cal++ 0.90
    1. Update and upgrade kali
    Code:
    apt-get clean && apt-get update && apt-get upgrade && apt-get dist-upgrade
    2. Install headers
    Code:
    apt-get install linux-headers-$(uname -r)
    3. Install fglrx
    Code:
    apt-get install fglrx-driver fglrx-atieventsd fglrx-control
    4. Build xorg files
    Code:
    aticonfig --initial
    5. Reboot
    Code:
    shutdown -r now
    6. Install some dependencies needed for later
    Code:
    apt-get install libpcap-dev python-dev libssl-dev
    7. Download AMD APP SDK from the link below (about 120MB). I'm on 64bit so I downloaded 2.9-1 for linux 64bit. Store it in your home folder. Extract it when finished.
    Code:
    http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/
    
    cd ~
    
    tar xvf AMD-APP-SDK*.tar.bz2
    8. Install AMD APP SDK and accept defaults
    Code:
    ./AMD-APP-SDK*.sh
    9. Update .bashrc to set the correct paths. Insert the block below somewhere near the top (use the blank space under # for examples on line 3)
    Code:
    cd ~
    nano .bashrc
    Add the following
    Code:
    # AMD APP SDK
    export AMDAPPSDKROOT=/opt/AMDAPPSDK-2.9-1
    export AMDAPPSDKSAMPLESROOT=/opt/AMDAPPSDK-2.9-1/
    export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}
    export ATISTREAMSDKROOT=$AMDAPPSDKROOT
    10. Reboot again to update paths as its easiest.
    Code:
    shutdown -r now
    11. Some required files are not provided by AMD APP SDK, so this step is to download them and put them where they need to go.
    Code:
    mkdir /opt/AMDAPPSDK-2.9-1/include/CAL
    
    cd /opt/AMDAPPSDK-2.9-1/include/CAL
    
    svn checkout https://github.com/clockfort/amd-app-sdk-fixes/trunk/include/CAL .
    12. Install some more dependencies for cal++
    Code:
    apt-get install cmake libboost-all-dev
    13. Download cal++ from here (about 90kb). Store it in your home folder.
    Code:
    http://sourceforge.net/projects/calpp/files/latest/download
    14. Extract cal++ and go into the folder created.
    Code:
    cd ~
    
    tar xvf cal*.tar.gz
    
    cd calpp-0.90
    15. Nano the CMakeLists.txt file. Change line 18,19 and 20 to match those below. When changes are finished, save and exit.
    Code:
    FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "$ENV{ATISTREAMSDKROOT}" )
    FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "$ENV{ATISTREAMSDKROOT}" ) 
    FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "$ENV{ATISTREAMSDKROOT}/include/CAL" )
    16. Time to build and install cal++. Run the following from within the calpp-0.90 folder. Should be ~/calpp-0.90/. Will have warnings but it will finish.
    Code:
    cmake .
    
    make
    
    make install
    17. Checkout and then build 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
    18. Move into the cpyrit_calpp folder
    Code:
    cd ~/pyrit_svn/cpyrit_calpp/
    19. Edit line 28 and then line 41 to match those shown below. Once changes are made, save and exit.
    Code:
    nano +28 setup.py
    
    Line 28 should read
    VERSION = '0.4.1-dev'
    
    Line 41 should read
    CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL'))
    20. Build and install cpyrit_calpp
    Code:
    python setup.py build
    python setup.py install
    21. List pyrit cores and benchmark. You should see your cal++ device in pyrit list_cores
    Code:
    pyrit list_cores
    
    pyrit benchmark
    Last edited by staticn0de; 2014-09-20 at 04:34.
    chown -R us ./base

Similar Threads

  1. Replies: 10
    Last Post: 2016-03-03, 20:37
  2. Having severe difficulty with FGLRX /pyrit/cowpatty using KALI
    By theoctavist in forum General Archive
    Replies: 0
    Last Post: 2015-08-27, 23:46
  3. (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
  4. Unable to use pyrit with 2 cards
    By ch3kmate in forum General Archive
    Replies: 0
    Last Post: 2014-10-10, 07:15
  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
  •