Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-07-2011
Member
 
Join Date: Jun 2011
Posts: 84
Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5
  

Please help me. I want to install ATI APP SDK, Cal++ and Pyrit on Backtrack 5 in my Linux operating system. Actually I am new to it so thought of asking you experts so that I don?t land with troubleshoot. Please give me the steps for the same. Is it ok for my system If I install them. All your replies will be appreciated.

Reply With Quote
  #2  
Old 06-07-2011
Member
 
Join Date: Nov 2009
Posts: 754
Re: Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

I am sure it installing them won?t affect your system. You can install them in you Linux operating system and enjoy their use. I can only help you with the ATI driver since I am familiar to it. Just do as I say:

Open the console and first prepare Kernel sources in the same by using the below code:

Code:
prepare-kernel-sources
cd /usr/src/linux
cp -rf include/generated/* include/linux/
After that install the ATI driver by running the following code:
sh ati-driver-installer-11-5-x86.x86_64.run

Then restart your computer.
Reply With Quote
  #3  
Old 06-07-2011
Member
 
Join Date: Apr 2009
Posts: 967
Re: Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

To install the AMD- APP SDK follow as I recommend. Before installing download AMD- APP SDK from official website. Then perform Installing amd-app (SDK) by clicking on the amd-app_2.4_amd64.deb file and then click install. Also note that the amd app sdk installs with opencl support only. After that download AMD-APP-SDK-v2.4-lnx64.tgz with CAL++ Libraries and then type:

Code:
tar -xvzf AMD-APP-SDK-v2.4-lnx64.tgz
Then go into the directory:

Code:
cd AMD-APP-SDK-v2.4-lnx64
tar -xvzf icd-regisration.tgz
make
make install

Install the boost library and dev tools by typing:

Code:
apt-get install libboost1.40-all-dev
install cmake by typing:

Code:
apt-get install cmake
Reply With Quote
  #4  
Old 06-07-2011
Member
 
Join Date: Nov 2009
Posts: 1,416
Re: Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

Since I have tried CAL++ in my Linux operating system so, I can guide you to install CAL++ properly. Search on internet and download properly CAL++ in your root directory.
Now type:

Code:
tar -xvzf calpp-0.90.tar.gz

cd calpp-0.90
After that, edit the CMakeLists.txt file in the cal++ directory. This is because it knows where ATI APP is installed. Open the file in nano by using:

Code:
nano CMakeLists.txt
Find the lines that start with FIND_LIBRARY() and edit to look like this:
FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" )
FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" ) 
FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "/root/AMD-APP-SDK-v2.4-lnx64/include/CAL" )
Following with editing the bashrc file:

Code:
nano ~/.bashrc
Reply With Quote
  #5  
Old 06-07-2011
Member
 
Join Date: Nov 2009
Posts: 1,269
Re: Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

If your CAL++ is not installed then do the below advanced step because in some system it happens and then its necessary to do the below step.
Go to the bottom and add this:
  • ATISTREAMSDKROOT=/root/AMD-APP-SDK-v2.4-lnx64/
  • ATISTREAMSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx64/samples
  • LD_LIBRARY_PATH=opt/oracle/instantclient_10_2:$ATISTREAMSDKROOT/lib/x86_64
  • export ATISTREAMSDKROOT
  • export ATISTREAMSDKSAMPLESROOT

After that install cal++ by going into the cal++ directory and typing:

Code:
cmake .
once that's finished, type
Code:
make install
cd into pyrit_svn/pyrit
type:

Code:
python setup.py build install
cd 
cd cpyrit_calpp
python setup.py build install
Now you can run pyrit list_cores by showing cal++ device & cpus, then atlast run pyrit benchmark. Hope this advice helps you.
Reply With Quote
  #6  
Old 06-07-2011
Member
 
Join Date: Apr 2009
Posts: 1,106
Re: Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

While trying the above steps if you get error same as:
  • root@bt:~/pyrit_svn/cpyrit_calpp# ./setup.py build
  • running build
  • running build_ext
  • Building modules...
  • building 'cpyrit._cpyrit_calpp' extension
  • gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/root/AMD-APP-SDK-v2.4-lnx64/include -I/usr/include/python2.6 -c _cpyrit_calpp.cpp -o build/temp.linux-x86_64-2.6/_cpyrit_calpp.o -Wall -fno-strict-aliasing -DVERSION="0.4.0-dev (svn r308)"
  • cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
  • In file included from _cpyrit_calpp.cpp:38:
  • /usr/local/include/cal/cal.hpp:26:17: error: cal.h: No such file or directory
  • /usr/local/include/cal/cal.hpp:27:19: error: calcl.h: No such file or directory
Reply With Quote
  #7  
Old 06-07-2011
Member
 
Join Date: Nov 2009
Posts: 1,292
Re: Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

The easiest code for same error is as follows:
  • root@bt:~/cpyrit_calpp# pyrit benchmark
  • /usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: Version mismatch between <module 'cpyrit._cpyrit_cpu' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.1-dev (svn r308)') and <module 'cpyrit._cpyrit_calpp' from '/usr/local/lib/python2.6/dist-packages/cpyrit/_cpyrit_calpp.so'> ('0.4.0-dev (svn r304)')
  • "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
  • 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+
  • Running benchmark (13251.7 PMKs/s)... -
Code:
Computed 13251.72 PMKs/s total.
#1: 'CAL++ Device #1 'AMD REDWOOD'': 12922.5 PMKs/s (RTT 1.5)
#2: 'CPU-Core (SSE2)': 324.1 PMKs/s (RTT 3.2)
#3: 'CPU-Core (SSE2)': 335.9 PMKs/s (RTT 3.0)
#4: 'CPU-Core (SSE2)': 332.2 PMKs/s (RTT 2.9)
Reply With Quote
  #8  
Old 09-07-2011
Member
 
Join Date: Apr 2009
Posts: 1,106
Re: Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5

If your problem is still not fixed then fix it by doing the below steps:
  • cal.h: No such file or directory
  • calcl.h: No such file or directory
  • cal_ext.h: No such file or directory

Then edit the setup.py in pyrit_svn/cpyrit_calpp and change it to the below code:
CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include'))

Or

CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL'))
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Installing ATI APP SDK, Cal++ and Pyrit on Backtrack 5"
Thread Thread Starter Forum Replies Last Post
How to do partition while installing Backtrack 5 and windows 7 x64? Baijayanthi Operating Systems 7 20-10-2011 07:42 PM
Pyrit doesnt recognize GPU at backtrack 5 iraqiboy90 Operating Systems 6 14-09-2011 07:30 PM
Backtrack 5-Nvidia 64 drivers / Cuda and pyrit Chahel Operating Systems 4 19-06-2011 04:42 AM
Backtrack 5 - How to install pyrit Haleema Operating Systems 4 18-06-2011 04:38 AM
Installing Backtrack with Windows Y2kCyK Operating Systems 7 12-01-2009 11:18 PM


All times are GMT +5.5. The time now is 07:27 PM.