-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
30 lines (21 loc) · 1.15 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
CC = icc
#CFLAGS = -DIMC_COUNTS -DCHA_COUNTS -DMAP_L3 -sox -g -O -xCORE-AVX512
CFLAGS = -DIMC_COUNTS -DCHA_COUNTS -sox -g -O -xCORE-AVX512
default: SnoopFilterMapper
SnoopFilterMapper.o: SnoopFilterMapper.c
icc $(CFLAGS) -qopenmp -c SnoopFilterMapper.c
ssum.o: ssum.c
icc -sox -g -O -xCORE-AVX512 -qopt-zmm-usage=high -c ssum.c
SnoopFilterMapper: SnoopFilterMapper.o ssum.o va2pa_lib.o low_overhead_timers.c
icc $(CFLAGS) -qopenmp SnoopFilterMapper.o ssum.o va2pa_lib.o -o SnoopFilterMapper
SF_test_offsets.o: SF_test_offsets.c
icc $(CFLAGS) -qopenmp -DRANDOMOFFSETS -DMYHUGEPAGE_1GB -c SF_test_offsets.c
SF_test_offsets: SF_test_offsets.o ssum.o va2pa_lib.o low_overhead_timers.c
icc $(CFLAGS) -qopenmp SF_test_offsets.o ssum.o va2pa_lib.o -o SF_test_offsets
SnoopFilterMapper_THP.o: SnoopFilterMapper.c
icc $(CFLAGS) -qopenmp -DMYHUGEPAGE_THP -c SnoopFilterMapper.c -o SnoopFilterMapper_THP.o
SnoopFilterMapper_THP: SnoopFilterMapper_THP.o ssum.o va2pa_lib.o low_overhead_timers.c
icc $(CFLAGS) -qopenmp SnoopFilterMapper_THP.o ssum.o va2pa_lib.o -o SnoopFilterMapper_THP
clean:
rm -f *.o
rm -f SnoopFilterMapper SnoopFilterMapper_THP SF_test_offsets