This guide is part of a series that guides readers on How to install FGLRX, AMD APP SDK, CAL++ and Pyrit in Kali Linux. The idea is to install correct drivers in Kali Linux for your GPU and use CPU+GPU combination with Pyrit to make raw data crunching faster. An example would be to utilize this combined processing power to crunch though WPA/WPA2 capture file to find Wifi password.
Readers, please follow this series in the following order:
- Install AMD ATI Driver (fglrx) in Kali Linux 1.x
- How to install AMD APP SDK in Kali Linux?
- How to install CAL++ in Kali Linux?
- How to install Pyrit in Kali Linux?
A big thanks goes to hexed6 from Kali Forums for his original post.
Check FGLRX Installation
First check if fglrx
module is installed:
lsmod | grep fglrx
You should get a response similar to:
fglrx 2635205 82 button 12945 1 fglrx
If not installed follow this guide to install it.
Install AMD ATI Driver (fglrx) in Kali Linux 1.x
Installing AMD APP SDK
What is AMD APP Technology?
AMD APP technology is a set of advanced hardware and software technologies that enable AMD graphics processing cores (GPU), working in concert with the system’s x86 cores (CPU), to execute heterogeneously to accelerate many applications beyond just graphics. This enables better balanced platforms capable of running demanding computing tasks faster than ever, and sets software developers on the path to optimize for AMD Accelerated Processing Units (APUs).
What is the AMD APP Software Development Kit?
The AMD APP Software Development Kit (SDK) is a complete development platform created by AMD to allow you to quickly and easily develop applications accelerated by AMD APP technology. The SDK provides samples, documentation, and other materials to quickly get you started leveraging accelerated compute using OpenCL™, Bolt, or C++ AMP in your C/C++ application, or Aparapi for your Java application.
What is OpenCL™?
OpenCL™ is the first truly open and royalty-free programming standard for general-purpose computations on heterogeneous systems. OpenCL™ allows programmers to preserve their expensive source code investment and easily target both multi-core CPUs and the latest APUs and discrete GPUs, such as those from AMD. Developed in an open standards committee with representatives from major industry vendors, OpenCL™ gives users what they have been demanding: a cross-vendor, non-proprietary solution for accelerating their applications on their CPU and GPU cores.
- To learn more, see the OpenCL Zone.
- To get the AMD APP SDK with OpenCL Support, Go to Downloads.
Download AMD APP SDK x2.7
Download AMD APP SDK v2.7 from:
Install SDK
Install the SDK:
mkdir amdappsdk cp AMD-APP-SDK-v2.7-lnx64.tar amdappsdk/ cd amdappsk tar -xvf AMD-APP-SDK-v2.7-lnx64.tar ./Install-AMD-APP.sh
Edit /root/.bashrc
, add the following lines to the end of the file:
# AMD APP SDK export AMDAPPSDKROOT=/opt/AMDAPP export AMDAPPSDKSAMPLESROOT=/opt/AMDAPP/ export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH} export ATISTREAMSDKROOT=$AMDAPPSDKROOT
Save and quit, then issue the following command:
source ~/.bashrc
hello again my fine brother u helped me so mutch with youre latest tutorial it workd for me thank you so mutch for your time and consideration im here asking before doing anything wrong so i found out that the v2.9 is the latest version of the AMD APP SDK but youre tutorial is for the v2.7 so shoud i try it with the 2.9 version ? or else where can i find the 2.7 version ? thanks again :)
Hi Youssef,
You could always give it a try. I see no big difference between 2.7 and 2.9 apart from some library files. Take a system snapshot and try, in case you don't like the new one or it doesn't work, revert your snapshot back. Try rsnapshot or snapper. I would advise to try these in a Virtual machine first and then implement in physical installation to avoid data loss. Hope that helps.
2.9 is a minefield! Best suggestion is to stick with 2.7. AMD have changed their site, the download link above gets redirected to 2.9. You need to dig for the correct version. The direct link for the archived versions is http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/download-archive/. Hope this helps!
What about people running intel graphics driver?
Hi josetheking,
Intel only supports OpenCL on GPU on Windows, no Linux support.
I try to 3-4 times with sdk 2.9 and didn’t work… fresh install, but with 2.7 works from the start. thx for the tutorial
with A4-5300: 7000-7300 PMKs
Hi shadow,
That’s only CPU; right? Did you try CAL++ and see how different it is?
Hi there! No, it’s the cpu and the gpu…
Computed 6497.74 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 6046.3 PMKs/s (RTT 1.3)
#2: ‘CPU-Core (SSE2/AES)’: 634.3 PMKs/s (RTT 3.2)
that’s the result from pyrit benchmark but when i use pyrit for .cap files, the average is 7000-7300 PMKs
Maybe I skip something…. but, to be honest it’s the cheapest APU from AMD…
What do l do with the install code for the AMD APP SDK l’m really confused?
l don’t know how to install the SDK l’m confused sorry l downloaded the AMD APP SDK but what do l do now?
sorry
Hi Keron,
All the instructions are in the post above. I also recommend reading the comment section where we discussed many issues and resolved them.
Thanks,
-BMO
Hi, sorry I realized I osted this in the next step last night accidentally. Do you know how I go about uninstalling amd app sdk 2.9? I followed the tutorial along to the CAL++ part then realized there were comments and also realized that 2.9 is not the way to go with this. Any help would be great! Thank you BMO!
AMD website got those instructions as far I can remember. Same place you downloaded SDK — I can’t remember exactly where I’ve read it, perhaps in the README files.
I did same, fresh install is the only way and be mindful of what your doing. PITA but what isnt on linux
when i try to Edit /root/.bashrc it says bash: /root/.bashrc: Permission denied
You’re not root?
There is no file to edit the .bashrc in the root directory…
JK, to get to it you have to go to View then click the option “Show Hidden Files”
Anyone in 2020 that have an AMD SDK 2.7 linux file fo download.? because with 2.8-2.9 i have no succes with opencl and ati card.