-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·32 lines (23 loc) · 1.05 KB
/
build.sh
File metadata and controls
executable file
·32 lines (23 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Fill in these environment variables.
# I have tested this code with CUDA 4.0, 4.1, and 4.2.
# Only use Fermi-generation cards. Older cards won't work.
# If you're not sure what these paths should be,
# you can use the find command to try to locate them.
# For example, NUMPY_INCLUDE_PATH contains the file
# arrayobject.h. So you can search for it like this:
#
# find /usr -name arrayobject.h
#
# (it'll almost certainly be under /usr)
# CUDA toolkit installation directory.
export CUDA_INSTALL_PATH=/usr/local/cuda-5.5
# CUDA SDK installation directory.
export CUDA_SDK_PATH=/home/shuo/NVIDIA_CUDA-5.5_Samples/common/inc
# Python include directory. This should contain the file Python.h, among others.
export PYTHON_INCLUDE_PATH=/usr/include/python2.7
# Numpy include directory. This should contain the file arrayobject.h, among others.
export NUMPY_INCLUDE_PATH=/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/
# ATLAS library directory. This should contain the file libcblas.so, among others.
export ATLAS_LIB_PATH=/usr/lib/
make $*