-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (28 loc) · 836 Bytes
/
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
# define the shell to bash
SHELL := /bin/bash
# define the C/C++ compiler to use,default here is clang
CC = gcc-7
test_sequential:
#tar -xvzf code.tar.gz
cd vptree; make lib; cd ..
cd vptree; cp lib/*.a inc/vptree.h ../; cd ..
$(CC) tester.c vptree_sequential.a -o $@ -lm
./test_sequential
test_pthreads:
#tar -xvzf code.tar.gz
cd vptree; make lib; cd ..
cd vptree; cp lib/*.a inc/vptree.h ../; cd ..
$(CC) tester.c vptree_pthreads.a -o $@ -lm -pthread
./test_pthreads
test_openmp:
#tar -xvzf code.tar.gz
cd vptree; make lib; cd ..
cd vptree; cp lib/*.a inc/vptree.h ../; cd ..
$(CC) tester.c vptree_openmp.a -o $@ -lm -fopenmp
./test_openmp
test_cilk:
#tar -xvzf code.tar.gz
cd vptree; make lib; cd ..
cd vptree; cp lib/*.a inc/vptree.h ../; cd ..
$(CC) tester.c vptree_cilk.a -o $@ -lm -fcilkplus
./test_cilk