forked from LouisJenkinsCS/Distributed-Data-Structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (45 loc) · 2.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
SRC = $(shell find . -name *.chpl)
OUT = bin/main.exe
CHPLFLAGS = --fast --devel
EXTRAFLAGS =
# CHPLFLAGS can be used to add additional compiler flags to Chapel
# Raw Microbenchmark
Benchmark:
chpl ${CHPLFLAGS} queues/Queue.chpl queues/local/SyncList.chpl queues/local/SyncQueue.chpl \
queues/local/CCQueue.chpl queues/distributed/DistributedFIFOQueue.chpl \
queues/distributed/DistributedQueue.chpl benchmark/benchmark.chpl misc/LocalAtomicObject.chpl \
-o $(OUT) --main-module benchmark ${EXTRAFLAGS}
# NQueens Benchmark
NQueens:
chpl ${CHPLFLAGS} queues/Queue.chpl queues/local/SyncList.chpl queues/local/SyncQueue.chpl \
queues/local/CCQueue.chpl queues/distributed/DistributedFIFOQueue.chpl \
queues/distributed/DistributedQueue.chpl benchmark/NQueens.chpl misc/LocalAtomicObject.chpl \
-o $(OUT) --main-module NQueens ${EXTRAFLAGS}
# Proof of Correctness Test for CCQueue...
CCQueue:
chpl ${CHPLFLAGS} queues/local/CCQueue.chpl queues/Queue.chpl misc/LocalAtomicObject.chpl \
-o $(OUT) --main-module CCQueue ${EXTRAFLAGS}
# Proof of Correctness Test for SyncList...
SyncList:
chpl ${CHPLFLAGS} queues/local/SyncList.chpl queues/Queue.chpl misc/LocalAtomicObject.chpl \
-o $(OUT) --main-module SyncList ${EXTRAFLAGS}
# Proof of Correctness Test for SyncQueue...
SyncQueue:
chpl ${CHPLFLAGS} queues/local/SyncQueue.chpl queues/Queue.chpl misc/LocalAtomicObject.chpl \
-o $(OUT) --main-module SyncQueue ${EXTRAFLAGS}
# Proof of Correctness Test for FCHQueue...
FCHQueue:
chpl ${CHPLFLAGS} queues/distributed/FCHQueue.chpl queues/Queue.chpl misc/LocalAtomicObject.chpl \
misc/FCHLock.chpl misc/Bitmap.chpl misc/GDT.chpl \
-o $(OUT) --main-module FCHQueue ${EXTRAFLAGS}
# Proof of Correctness Test for FIFO...
FIFO:
chpl ${CHPLFLAGS} queues/Queue.chpl queues/distributed/DistributedFIFOQueue.chpl \
misc/LocalAtomicObject.chpl queues/local/SyncQueue.chpl \
-o $(OUT) --main-module DistributedFIFOQueue ${EXTRAFLAGS}
# Proof of Correctness Test for MPMC...
MPMC:
chpl ${CHPLFLAGS} queues/Queue.chpl queues/distributed/DistributedQueue.chpl \
-o $(OUT) --main-module DistributedQueue ${EXTRAFLAGS}
clean:
rm $(OUT) $(OUT)_real