This is a guide on the best way (I've found) to install ATI Driver, ATI APP SDK, Cal++ and pyrit.Some of the instructions are from the old how to for bt4, but edited for bt5 and some I just figured out on my own. Hope this helps some people:
First prepare kernel sources by:
Code:
prepare-kernel-sources
cd /usr/src/linux
cp -rf include/generated/* include/linux/
Now install ati driver by running:
Code:
sh ati-driver-installer-11-5-x86.x86_64.run
Follow install and then restart computer.
Download the AMD-APP SDK from
http://orwell.fiit.stuba.sk/~nou/amd-app_2.4_amd64.deb
Install amd-app (SDK) by clicking on the
amd-app_2.4_amd64.deb file and clicking install.
*** Note this installs the amd app sdk with opencl support only ***
Also download the AMD-APP-SDK-v2.4-lnx64.tgz (With CAL++ Libraries) from:
http://developer.amd.com/gpu/AMDAPPS...s/default.aspx
Untar by typing:
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
Download cal++ to your root directory from:
http://sourceforge.net/projects/calp...ar.gz/download
Now untar calpp-0.90 by typing:
Code:
tar -xvzf calpp-0.90.tar.gz
cd calpp-0.90
First edit the CMakeLists.txt file in the cal++ directory so that it knows where ATI APP is installed.
Open the file in nano by:
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" )
Then edit the bashrc file by typing:
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
Then install cal++ by going into the cal++ directory and typing:
once that's finished, type
cd into pyrit_svn/pyrit
type:
Code:
python setup.py build install
cd ..
cd cpyrit_calpp
python setup.py build install
Now run pyrit list_cores (should show cal++ device & cpus) & then run pyrit benchmark
*** Note, you may get an error about a version mismatch between cpyrit_calpp & cpyrit_cpu, you can just ignore that (or edit the version number in setup.py under the cpyrit_calpp directory to version 1.4.1-dev (I think it is) to match the version of pyrit's setup.py). ***
Again hope this helps some people that want to use cal++ with pyrit and their ATI cards, feel free to comment and ask questions. This may also work for 32bit systems and possibly gnome, but some adjustments would have to be made to file paths and the files downloaded.