updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / gpgpu-sim / PKGBUILD
blob46215d3a9885575f5c114edbb2169fddbd5f1b47
1 # Author: Andrew Boktor <andrew.boktor@gmail.com>
3 pkgname=gpgpu-sim
4 pkgver=3.0
5 pkgrel=1
6 pkgdesc="GPGPU Simulator"
7 arch=('i686' 'x86_64')
8 url="http://gpgpu-sim.org"
9 license=('GPL2')
10 depends=('ncurses' 'boost')
11 makedepends=('cuda3.1-toolkit' 'cuda3.1-sdk')
14 build() {
15         git clone git://dev.ece.ubc.ca/gpgpu-sim --depth=1
16         cd gpgpu-sim/v3.x/
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
25         make || return 1
28 package() {
29         cd $pkgdir
30         mkdir -p usr/local
31         mv $srcdir/gpgpu-sim/v3.x usr/local/$pkgname