Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73579706
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 22, 20:57
Size
887 B
Mime Type
text/x-makefile
Expires
Wed, Jul 24, 20:57 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19229976
Attached To
rPNBODY pNbody
Makefile
View Options
PGM = libcon
LOCAL = /usr
INCLUDEPY = /usr/include/python2.6/
INCLUDENUMPY = /usr/lib64/python2.6/site-packages/numpy/core/include/
CUDA = /opt/cuda
CUDA_SDK = /opt/NVIDIA_GPU_Computing_SDK
OPTS =
CFLAGS= -I$(INCLUDEPY) -I$(INCLUDENUMPY) -I$(CUDA)/include -I$(CUDA_SDK)/C/common/inc/
LIBS= -lfftw3 -lgsl -lgslcblas -lm -lcuda -L$(CUDA)/lib64 -lcudart -L$(CUDA_SDK)/C/lib/ -lcutil -lcufft
all: $(PGM).so
$(PGM).so : $(PGM).o $(PGM)-kernel.o Makefile
g++ --shared $(LIBS) $(PGM).o $(PGM)-kernel.o -o $(PGM).so
$(PGM).o : $(PGM).c Makefile
g++ -fPIC $(CFLAGS) $(PGM).c -o $(PGM).o -c
$(PGM)-kernel.o : $(PGM)-kernel.cu Makefile
nvcc -arch sm_13 --compiler-options '-fPIC' $(CFLAGS) -o $(PGM)-kernel.o $(PGM)-kernel.cu -c
nbody.o : nbody.c Makefile
g++ -fPIC nbody.c -o nbody.o -c
clean:
rm -f *.o *.so
Event Timeline
Log In to Comment