-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·62 lines (47 loc) · 1.72 KB
/
Copy pathMakefile
File metadata and controls
executable file
·62 lines (47 loc) · 1.72 KB
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
57
58
59
60
61
62
ifeq ($(CC),icc)
include make_intel.inc
else
ifeq ($(CC),clang)
include make_clang.inc
else
include make_gnu.inc
endif
endif
BLOCKSIZE=4096
TESTSIZE=16384
all: test
clean:
rm build/* bin/*
#############################
# Testing
#############################
test: bin/test_atomicreduce bin/test_ompreduce bin/test_blockreduce bin/test_containeratomicreduce bin/test_containerdensereduce bin/test_mapreduce bin/test_btreereduce bin/test_keeperreduce bin/test_awblockreduce
bin/test_atomicreduce
bin/test_ompreduce
bin/test_blockreduce
bin/test_containeratomicreduce
bin/test_containerdensereduce
bin/test_mapreduce
bin/test_btreereduce
bin/test_keeperreduce
bin/test_awblockreduce
build/main.o: tests/main.c
$(CXX) $^ -c $(CXXF) -Iinclude -DNSIZE=$(TESTSIZE) -o $@
bin/test_atomicreduce: build/main.o tests/test_atomicReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -o $@
bin/test_ompreduce: build/main.o tests/test_ompReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -o $@
bin/test_containeratomicreduce: build/main.o tests/test_containeratomicReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -o $@
bin/test_containerdensereduce: build/main.o tests/test_containerdenseReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -o $@
bin/test_mapreduce: build/main.o tests/test_mapReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -o $@
bin/test_btreereduce: build/main.o tests/test_btreeReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -D_USE_BTREE -o $@
bin/test_blockreduce: build/main.o tests/test_blockReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -DBSIZE=$(BLOCKSIZE) -o $@
bin/test_keeperreduce: build/main.o tests/test_keeperReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -o $@
bin/test_awblockreduce: build/main.o tests/test_AWBlockReduction.cpp
$(CXX) $^ $(CXXF) -Iinclude -o $@