Last change
on this file was
150,
checked in by (none), 14 years ago
|
Modified Makefile
|
-
Property svn:executable set to
*
|
File size:
702 bytes
|
Line | |
---|
1 | INCDIR = -I. -I/usr/local/cuda/sdk/C/common/inc -I/home/szekeres/Desktop/cudpp_1.1/cudpp/include |
---|
2 | LIBS = -lcudpp |
---|
3 | LIBDIR = -L/home/szekeres/Desktop/cudpp_1.1/lib |
---|
4 | DBG = -g |
---|
5 | CPP = g++ |
---|
6 | CFLAGS = $(DBG) $(INCDIR) |
---|
7 | LINK = -lm |
---|
8 | |
---|
9 | .cpp.o: |
---|
10 | $(CPP) $(CFLAGS) -c $< -o $@ |
---|
11 | |
---|
12 | all: parallel sequential |
---|
13 | |
---|
14 | parallel: |
---|
15 | nvcc segment.cu -o parallel ${INCDIR} ${LIBDIR} ${LIBS} |
---|
16 | |
---|
17 | sequential: segment.cpp segment-image.h segment-graph.h disjoint-set.h |
---|
18 | $(CPP) $(CFLAGS) -o sequential segment.cpp $(LINK) |
---|
19 | |
---|
20 | clean: |
---|
21 | /bin/rm -f parallel sequential *.o |
---|
22 | |
---|
23 | clean-all: clean |
---|
24 | /bin/rm -f *~ |
---|
25 | |
---|
26 | run_parallel: |
---|
27 | ./parallel 0.8 500 20 lanscape_vectors.ppm out.ppm |
---|
28 | |
---|
29 | run_sequential: |
---|
30 | ./sequential 0.8 500 20 lanscape_vectors.ppm out.ppm |
---|
31 | |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.