1 # Author: Andrew Boktor <andrew.boktor@gmail.com>
6 pkgdesc="GPGPU Simulator"
8 url="http://gpgpu-sim.org"
10 depends=('ncurses' 'boost')
11 makedepends=('cuda3.1-toolkit' 'cuda3.1-sdk')
15 git clone git://dev.ece.ubc.ca/gpgpu-sim --depth=1
17 sed -i 's/^export\ CUDA_INSTALL_PATH.*$/export\ CUDA_INSTALL_PATH=\/usr\/local\/cuda3.1-toolkit/1' setup_enviroment
18 sed -i 's/^export\ CUDAHOME.*$/export\ CUDAHOME=\$CUDA_INSTALL_PATH/1' setup_enviroment
19 sed -i 's/^export\ NVIDIA_COMPUTE_SDK_LOCATION.*$/export\ NVIDIA_COMPUTE_SDK_LOCATION=\/usr\/local\/cuda3.1-sdk/1' setup_enviroment
20 echo "Warning: Disabling OpenCl support in gpgpu-sim by default ..."
21 sed -i 's/^export\ NVOPENCL_LIBDIR.*$/export\ NVOPENCL_LIBDIR=/1' setup_enviroment
22 sed -i 's/#include/#include\ <cstdio>\n#include/1' decuda_to_ptxplus/decudaInst.cc
23 # export PATH=$PATH:$CUDA_INSTALL_PATH/bin/
24 source setup_enviroment
31 mv $srcdir/gpgpu-sim/v3.x usr/local/$pkgname