-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.intel
28 lines (18 loc) · 1.21 KB
/
Makefile.intel
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
export INTELROOT=/opt/intel
export MKLROOT=$(INTELROOT)/mkl
export MKLINCLUDE=$(MKLROOT)/include
export MKLLIBPATH=$(MKLROOT)/lib/intel64
export INTELLIBPATH=$(INTELROOT)/lib/intel64
export BINPATH=$(INTELROOT)/bin/intel64
ICC=/opt/intel/bin/icc #. $(INTELROOT)/bin/iccvars.sh intel64 && . $(MKLROOT)/bin/mklvars.sh intel64 && icc
ICCOPTS=-DINTEL_COMPILER -Wall -wd1419 -wd1418 -wd869 -wd920 -wd981 -wd1572 -O2
all: emmax-kin-intel64 epi-emmax-intel64 #emmax-predict-intel64
emmax-kin-intel64: emmax-kin.c
$(ICC) $(ICCOPTS) -I $(MKLINCLUDE) $< -Wl,--start-group -L $(MKLLIBPATH) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -Wl,--end-group -lpthread -lz -o $@
epi-emmax-intel64: epi-emmax.c
$(ICC) $(ICCOPTS) -I $(MKLINCLUDE) $< -Wl,--start-group $(MKLLIBPATH)/libmkl_intel_lp64.a $(MKLLIBPATH)/libmkl_intel_thread.a $(MKLLIBPATH)/libmkl_core.a -liomp5 -Wl,--end-group -lpthread -lz -o $@
emmax-predict-intel64: emmax-predict.cc
$(ICC) ($ICCOPTS) -I $(MKLINCLUDE) $< -Wl,--start-group $(MKLLIBPATH)/libmkl_intel_lp64.a $(MKLLIBPATH)/libmkl_intel_thread.a $(MKLLIBPATH)/libmkl_core.a -liomp5 -Wl,--end-group -lpthread -lz -o $@
clean:
rm -f *~ *.o
rm -f emmax-kin-intel64 epi-emmax-intel64 emmax-predict-intel64