source: proiecte/pmake3d/segment/Makefile @ 77

Last change on this file since 77 was 77, checked in by (none), 14 years ago

Added parallelized code

  • Property svn:executable set to *
File size: 657 bytes
Line 
1INCDIR = -I.
2DBG    = -g
3CPP    = g++
4CFLAGS = $(DBG) $(INCDIR)
5LINK   = -lm
6
7.cpp.o:
8        $(CPP) $(CFLAGS) -c $< -o $@
9
10all: parallel sequential
11
12parallel:
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
15sequential: segment.cpp segment-image.h segment-graph.h disjoint-set.h
16        $(CPP) $(CFLAGS) -o sequential segment.cpp $(LINK)
17
18clean:
19        /bin/rm -f parallel  sequential *.o
20
21clean-all: clean
22        /bin/rm -f *~
23
24run_parallel:
25        ./parallel 0.8 500 20 lanscape_vectors.ppm out.ppm
26
27run_sequential:
28        ./sequential 0.8 500 20 lanscape_vectors.ppm out.ppm
29
30
Note: See TracBrowser for help on using the repository browser.