Last change
on this file since 8932 was
8176,
checked in by steve, 14 years ago
|
Moved and then moved back anuga_1d. Will have to get Paul Bryan to first
update the pipe flow directory
|
File size:
972 bytes
|
Line | |
---|
1 | |
---|
2 | CC = gcc |
---|
3 | INCLUDES = -I"/usr/lib64/python2.6/site-packages/numpy/core/include" -I"/usr/include/python2.6" -I"../anuga/utilities/" |
---|
4 | CXXFLAGS += -O3 -Wall -fPIC ${INCLUDES} |
---|
5 | |
---|
6 | NVCC = nvcc |
---|
7 | NVCCFLAGS = -O3 --gpu-architecture sm_13 ${IPATH} -I${CUDA_INSTALL_PATH}/include -Xcompiler -fpic --ptxas-options="-v" |
---|
8 | # CUDA_INSTALL_PATH should evaluate to cuda home folder (where bin/ include/ lib/ etc. are located); |
---|
9 | # ptxas -verbose adds some kernel information output; |
---|
10 | # Be sure to adjust these environment variables: |
---|
11 | # export PATH=$PATH:${CUDA_INSTALL_PATH}/bin:${CUDA_INSTALL_PATH}/open64/bin |
---|
12 | # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${CUDA_INSTALL_PATH}/lib64/:${CUDA_INSTALL_PATH}/computeprof/bin/ |
---|
13 | |
---|
14 | LIBS = -L$(CUDA_INSTALL_PATH)/lib64 -lcudart -lm |
---|
15 | |
---|
16 | .PHONY : clean |
---|
17 | |
---|
18 | gpu_python_glue.so : gpu_python_glue.o cudafun.o |
---|
19 | ${CC} -shared $< cudafun.o -o $@ ${LIBS} |
---|
20 | |
---|
21 | %.o : %.c |
---|
22 | ${CC} ${CXXFLAGS} -c $< -o $@ |
---|
23 | |
---|
24 | %.o : %.cu |
---|
25 | $(NVCC) $(NVCCFLAGS) -o $@ -c $< |
---|
26 | |
---|
27 | clean : |
---|
28 | rm -f *.o |
---|
29 | rm -f *.so |
---|
Note: See
TracBrowser
for help on using the repository browser.