-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (49 loc) · 2.22 KB
/
Makefile
File metadata and controls
64 lines (49 loc) · 2.22 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
63
64
BASIC:
make CLEAN_BASIC
@echo "Compile main...";
gcc -O3 -ggdb -Wchkp -o radixHashJoin_basic src/main.c src/file_io.c src/parser.c src/query_functions.c src/radixHashJoin.c src/threadpool.c src/statistics_functions.c src/supportFunctions.c -pthread
BASIC_FOR_PROFILER:
make CLEAN_BASIC_FOR_PROFILER
@echo "Compile main...";
gcc -O0 -ggdb -Wchkp -o radixHashJoin_basic_for_profiler src/main.c src/file_io.c src/parser.c src/query_functions.c src/radixHashJoin.c src/threadpool.c src/statistics_functions.c src/supportFunctions.c -pthread -pg
DEBUG:
make CLEAN_DEBUG
@echo "Compile main...";
gcc -O3 -ggdb -Wall -Wchkp -o radixHashJoin_debug src/main.c src/file_io.c src/parser.c src/query_functions.c src/radixHashJoin.c src/threadpool.c src/statistics_functions.c src/supportFunctions.c -pthread -D PRINTING
DEEP_DEBUG:
make CLEAN_DEEP_DEBUG
@echo "Compile main...";
gcc -O3 -ggdb -Wall -Wchkp -o radixHashJoin_deep_debug src/main.c src/file_io.c src/parser.c src/query_functions.c src/radixHashJoin.c src/threadpool.c src/statistics_functions.c src/supportFunctions.c -pthread -D DEEP_PRINTING
UNIT_TESTING:
cd UnitTesting/Unity-master/Testing/MyTests && rake
# Add more UnitTesting directories.
HARNESS:
rm -rf build && ./compile.sh
DRIVER:
rm -rf build && ./compile.sh
PROFILER:
rm -rf profiler_output.txt
make BASIC_FOR_PROFILER
./radixHashJoin_basic_for_profiler && gprof radixHashJoin_basic_for_profiler gmon.out > profiler_output.txt && head -65 profiler_output.txt
CALLGRIND_PROFILER:
make BASIC_FOR_PROFILER
/usr/bin/valgrind --tool=callgrind ./radixHashJoin_basic_for_profiler
HARNESS_PROFILER:
rm -rf harness_profiler_output.txt
make HARNESS
cd build/release && ./harness workloads/small/small.init workloads/small/small.work workloads/small/small.result ../../run.sh && cd ../../ && gprof build/release/harness gmon.out > harness_profiler_output.txt && head -65 harness_profiler_output.txt
EXAMPLE:
gcc -o example example.c
CLEAN_BASIC:
rm -rf radixHashJoin_basic
CLEAN_BASIC_FOR_PROFILER:
rm -rf radixHashJoin_basic_for_profiler
CLEAN_DEBUG:
rm -rf radixHashJoin_debug
CLEAN_DEEP_DEBUG:
rm -rf radixHashJoin_deep_debug
CLEAN_ALL:
make CLEAN_BASIC
make CLEAN_BASIC_FOR_PROFILER
make CLEAN_DEBUG
make CLEAN_DEEP_DEBUG