Makefile 551 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CFLAGS:=-O0 -g3  #FIXME
#CFLAGS:=-O1  

all: mklspmm 

#all: mklspmv mklspmm 

mklspmv: mklspmv.o mmio.o
	icc mklspmv.o mmio.o -o $@ -mkl -lm -offload-option,mic,ld,"-rpath /opt/intel/mic/myo/lib/ -rpath /opt/intel/mic/coi/device-linux-release/lib/"

mklspmm: mklspmm.o mmio.o
	icc mklspmm.o mmio.o -o $@ -mkl -lm -offload-option,mic,ld,"-rpath /opt/intel/mic/myo/lib/ -rpath /opt/intel/mic/coi/device-linux-release/lib/"

.c.o:
	icc $(CFLAGS) $(OPTION) -o $@ -c $<

run:
	./mv ../mtx/tinyA.mtx

clean:
	@rm mmio.o mklspmv mklspmm mklspmm.o mklspmv.o