dff508e01f278fab110c59524857f4921e5a8c59
[charm.git] / tests / charm++ / kNeighbor / Makefile
1 LINKOPTS=-memory os
2 CHARMC=../../../bin/charmc $(OPTS)
3
4 OBJS = kNeighbor.o
5 COMPOBJS = kNeighbor.comp.o
6
7 all: kNeighbor 
8
9 projections: kNeighbor.proj kNeighbor.comp.proj
10
11 kNeighbor: $(OBJS)
12         $(CHARMC) -language charm++ -o kNeighbor $(OBJS) 
13         $(CHARMC) -language charm++ -o kNeighbor.memos $(OBJS) $(LINKOPTS)
14
15 kNeighbor.comp: $(COMPOBJS)
16         $(CHARMC) -language charm++ -o kNeighbor.comp.memos $(COMPOBJS) 
17         $(CHARMC) -language charm++ -o kNeighbor.comp $(COMPOBJS) $(LINKOPTS)
18
19 kNeighbor.proj: $(OBJS)
20         $(CHARMC) -language charm++ -tracemode projections -o kNeighbor.proj $(OBJS)
21         $(CHARMC) -language charm++ -tracemode projections -o kNeighbor.memos.proj $(OBJS) $(LINKOPTS)
22
23 kNeighbor.comp.proj: $(COMPOBJS)
24         $(CHARMC) -language charm++ -tracemode projections -o kNeighbor.comp.proj $(COMPOBJS)
25
26 kNeighbor.decl.h: kNeighbor.ci
27         $(CHARMC)  kNeighbor.ci
28
29 clean:
30         rm -f *.decl.h *.def.h conv-host *.o charmrun *~ kNeighbor kNeighbor.memos kNeighbor.comp kNeighbor.comp.memos kNeighbor.proj kNeighbor.comp.proj
31
32 kNeighbor.o: kNeighbor.C kNeighbor.decl.h
33         $(CHARMC) -c kNeighbor.C
34
35 kNeighbor.comp.o: kNeighbor.C kNeighbor.decl.h
36         $(CHARMC) -c -DDOCOMP kNeighbor.C -o kNeighbor.comp.o
37
38
39 test-smp: all
40         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 64 ++ppn 7
41         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 256 ++ppn 7
42         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 1024 ++ppn 7
43         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 16384 ++ppn 7
44
45 test-pxshm: all
46         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 64 +nodesize 7
47         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 256 +nodesize 7
48         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 1024 +nodesize 7
49         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 16384 +nodesize 7