/perf/ssebench

To get this branch, use:
bzr branch http://darksoft.org/webbzr/perf/ssebench
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#CC = icc
BINARIES = memcpy dbl2flt
#BINARIES = dbl2flt image_mean memcpy
#BINARIES = image_mean
#CFLAGS = 
#CFLAGS = -O2 -pthread -fopenmp -std=c99 -I/opt/cuda/include -march=native  -mfpmath=sse -ftree-vectorize -ffast-math -fno-builtin
CFLAGS = -O0 -pthread -fopenmp -std=c99 -I/opt/cuda/include -march=native  -mfpmath=sse -ftree-vectorize -ffast-math -fno-builtin -gdwarf-2 -g3 
LDFLAGS = -lpthread
#CFLAGS = -O3 -S -c
#CFLAGS = -O3 -march=nocona
#CFLAGS = -O3 --unroll-loops -mfpmath=sse -march=nocona -ftree-vectorize -msse3
#CFLAGS = -O3 -mfpmath=sse -march=nocona -ftree-vectorize -msse3
LIBS = -lm 
#LIBS = -lm -lcuda -lcudart -L/opt/cuda/lib64


all: $(BINARIES)

$(BINARIES):%:%.c Makefile
	$(CC) -o $@ $< $(CFLAGS) $(LIBS)

clean:
	rm -f $(BINARIES)