a little utility to record start/end events.
[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)  -lbigsim-param
13
14 traceBigSim.o:  traceBigSim.C
15         $(CHARMC) -c traceBigSim.C
16
17 kNeighbor.comp: $(COMPOBJS)
18         $(CHARMC) -language charm++ -o kNeighbor.comp.memos $(COMPOBJS) 
19         $(CHARMC) -language charm++ -o kNeighbor.comp $(COMPOBJS) $(LINKOPTS)
20
21 kNeighbor.proj: $(OBJS)
22         $(CHARMC) -language charm++ -tracemode projections -o kNeighbor.proj $(OBJS)
23         $(CHARMC) -language charm++ -tracemode projections -o kNeighbor.memos.proj $(OBJS) $(LINKOPTS)
24
25 kNeighbor.comp.proj: $(COMPOBJS)
26         $(CHARMC) -language charm++ -tracemode projections -o kNeighbor.comp.proj $(COMPOBJS)
27
28 kNeighbor.decl.h: kNeighbor.ci
29         $(CHARMC)  kNeighbor.ci
30
31 clean:
32         rm -f *.decl.h *.def.h conv-host *.o charmrun *~ kNeighbor kNeighbor.memos kNeighbor.comp kNeighbor.comp.memos kNeighbor.proj kNeighbor.comp.proj
33
34 kNeighbor.o: kNeighbor.C kNeighbor.decl.h 
35         $(CHARMC) -c kNeighbor.C
36
37 kNeighbor.comp.o: kNeighbor.C kNeighbor.decl.h
38         $(CHARMC) -c -DDOCOMP kNeighbor.C -o kNeighbor.comp.o
39
40
41 test-smp: all
42         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 64 ++ppn 7
43         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 256 ++ppn 7
44         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 1024 ++ppn 7
45         ./charmrun +p7 ./kNeighbor.memos +setcpuaffinity 7 10000 16384 ++ppn 7
46
47 test-pxshm: all
48         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 64 +nodesize 7
49         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 256 +nodesize 7
50         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 1024 +nodesize 7
51         ./charmrun +p7 ./kNeighbor +setcpuaffinity 7 10000 16384 +nodesize 7
52
53
54 interpolate:
55         ./charmrun +p3 ./kNeighbor 3 1 64 +x3 +y1 +z1 +bglog
56         ./charmrun +p3 ./kNeighbor 3 1 64
57