-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (12 loc) · 735 Bytes
/
Makefile
File metadata and controls
17 lines (12 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC := gcc -mavx2 -mfma
CFLAGS := -O1 -w -fno-inline-functions -fno-early-inlining -fno-inline-small-functions -fno-tree-loop-optimize -fno-loop-parallelize-all
#uncomment the following lines if running on acheron
#CFLAGS := -O1 -w -fno-inline-functions -fno-early-inlining -fno-inline-small-functions -fno-tree-loop-optimize
#CC := gcc
LDFLAGS += -lm -lpthread
all: clean k_nearest k_nearest_seq k_nearest_simd k_nearest_simd_book k_nearest_thread
k_nearest: k_nearest.c simpletimer.c parse.c
$(CC) -o k_nearest k_nearest.c simpletimer.c parse.c $(INCLUDES) $(LIBS) $(CFLAGS) $(LDFLAGS)
include Makefile.students.mk
clean:
rm -f *.o k_nearest k_nearest_seq k_nearest_simd k_nearest_simd_book k_nearest_thread