Adding anew load imbalanced benchmark
[charm.git] / examples / charm++ / imbalanced / Makefile
1 CHARMC=../../../bin/charmc $(OPTS)
2
3 OBJS = LB_Bench.o
4 PROJ= -tracemode projections -tracemode summary
5
6 all: LB_Bench LB_Bench_Proj LB_Bench_Proj_LB
7
8 LB_Bench: $(OBJS)
9         $(CHARMC) -language charm++ -o LB_Bench $(OBJS)
10
11 LB_Bench_Proj: $(OBJS)
12         $(CHARMC) -language charm++ -o LB_Bench_Proj $(PROJ) $(OBJS)
13
14 LB_Bench_Proj_LB: $(OBJS)
15         $(CHARMC) -language charm++ -o LB_Bench_Proj_LB -module EveryLB -balancer GreedyLB  -balancer RefineLB $(PROJ) $(OBJS)
16
17 LB_Bench.decl.h: LB_Bench.ci
18         $(CHARMC)  LB_Bench.ci
19
20 test: LB_Bench_Proj_LB
21         rm logs/* 
22         srun  --sockets-per-node=2 LB_Bench_Proj_LB 16 +traceroot logs/ +LBPeriod 2
23
24 clean:
25         rm -f *.decl.h *.def.h conv-host *.o LB_Bench charmrun *~ *.core LB_Bench_Proj *.projrc *.sts logs/*
26
27 LB_Bench.o: LB_Bench.C LB_Bench.decl.h
28         $(CHARMC) -c LB_Bench.C