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