stencil3d ldb example: add test target to Makefile
[charm.git] / examples / charm++ / load_balancing / stencil3d / Makefile
1 OPTS    = -O3
2 CHARMC  = ../../../../bin/charmc $(OPTS)
3
4 OBJS = stencil3d.o
5
6 all: stencil3d
7
8 stencil3d: $(OBJS)
9         $(CHARMC) -language charm++ -module CommonLBs -o stencil3d $(OBJS)
10
11 projections: $(OBJS)
12         $(CHARMC) -language charm++ -tracemode projections -lz -o stencil3d.prj $(OBJS)
13
14 summary: $(OBJS)
15         $(CHARMC) -language charm++ -tracemode summary -lz -o stencil3d.sum $(OBJS)
16
17 stencil3d.decl.h: stencil3d.ci
18         $(CHARMC)  stencil3d.ci
19
20 stencil3d.o: stencil3d.C stencil3d.decl.h
21         $(CHARMC) -c stencil3d.C
22
23 clean:
24         rm -f *.decl.h *.def.h conv-host *.o stencil3d stencil3d.prj charmrun *~
25
26 test: stencil3d
27         ./charmrun +p4 ./stencil3d 32 16 +balancer GreedyLB
28         ./charmrun +p4 ./stencil3d 32 16 +balancer RefineLB