-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 678 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 678 Bytes
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
CXX?=g++
CXXFLAGS+=-O2 -g -std=c++11
SSEFLAGS?=-msse4.2
AVXFLAGS?=-mavx
FMAFLAGS?=-mfma -mavx2
FFTWFLAGS?=-lfftw3 -lfftw3_omp
all:sse_bench avx_bench fma_bench omp_bench
sse_bench:
$(CXX) $(CXXFLAGS) $(SSEFLAGS) -o $@.exe $@.cpp
avx_bench:
$(CXX) $(CXXFLAGS) $(AVXFLAGS) -o $@.exe $@.cpp
fma_bench:
$(CXX) $(CXXFLAGS) $(FMAFLAGS) -o $@.exe $@.cpp
omp_bench:
$(CXX) $(CXXFLAGS) $(SSEFLAGS) -o $@.exe $@.cpp -fopenmp
find_bench:
$(CXX) $(CXXFLAGS) -c $@.cpp arg_find.cpp
$(CXX) $(CXXFLAGS) -o $@.exe $@.o arg_find.o
fftw_bench:
$(CXX) $(CXXFLAGS) $(SSEFLAGS) -o $@.exe $@.cpp $(FFTWFLAGS) -fopenmp
xbyak_test:
$(CXX) $(CXXFLAGS) -o $@.exe $@.cpp
clean:
rm *.exe