Created
June 21, 2014 18:54
-
-
Save llazzaro/5ac66105f7ff84f4d2e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Manually download APP-SDK from here: http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/ | |
mkdir AMD-APP-SDK-lnx64 | |
cd AMD-APP-SDK-lnx64/ | |
tar -zxvf AMD-APP-SDK-v2.9-lnx64.tgz | |
sudo ./Install-AMD-APP.sh | |
sudo apt-get install libssl-dev build-essential python-dev libpcap-dev | |
export AMDAPPSDKROOT="/opt/AMDAPP" | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/AMDAPP/lib/x86_64":"/opt/AMDAPP/lib/x86" | |
export ATISTREAMSDKROOT=$AMDAPPSDKROOT | |
chmod +x ati-driver-installer-11-11-x86.x86_64.run | |
sudo ./ati-driver-installer-11-11-x86.x86_64.run | |
# Now download CAL++ (http://sourceforge.net/projects/calpp/) and install it: | |
tar -zxvf calpp-0.90.tar.gz | |
cd calpp-0.90 | |
# CAL++ needs a couple of changes in order to properly find the AMD SDK libraries. | |
# edit CMakeLists.txt and comment out (add a '#' to # the beginning) these lines: | |
# FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "$ENV{ATISTREAMSDKROOT}/lib" ) | |
# FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "$ENV{ATISTREAMSDKROOT}/lib" ) | |
# FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "$ENV{ATISTREAMSDKROOT}/include" ) | |
# | |
#Add these: | |
# | |
# FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "/opt/AMDAPP/lib" ) | |
# FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "/opt/AMDAPP/lib" ) | |
# FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "/opt/AMDAPP/include/CAL" ) | |
sudo make install | |
svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn | |
cd pyrit_svn/cpyrit_calpp/ | |
# edit setup.py line 28 to read: | |
# VERSION = '0.4.1-dev' | |
# edit setup.py line 35 to read: | |
# CALPP_INC_DIR = '/opt/AMDAPP' | |
# edit setup.py line 41 to read: | |
# CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL')) | |
sudo python setup.py install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment