Skip to content
Snippets Groups Projects
Commit 9916aae0 authored by Jan Thorbecke's avatar Jan Thorbecke
Browse files

MKL

parent bbb25de0
No related branches found
No related tags found
No related merge requests found
...@@ -84,11 +84,13 @@ OPTC += -fopenmp ...@@ -84,11 +84,13 @@ OPTC += -fopenmp
############################################################################# #############################################################################
# BLAS and LAPACK libraries # BLAS and LAPACK libraries
MKLROOT=/opt/intel/mkl/ MKLROOT=/opt/intel/mkl/
MKLLIB=${MKLROOT}/lib
#for GNU compilers #for GNU compilers
#you might need to add intel64 to : ${MKLROOT}/lib/intel64 #you might need to add intel64 to : ${MKLROOT}/lib/intel64
BLAS = -L${MKLROOT}/lib/ -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl BLAS = -L${MKLROOT}/lib/ -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
#on linux you want to use a group #on linux you want to use groups and MKL is in lib/intel64
#BLAS = -Wl,--start-group -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl #MKLLIB=${MKLROOT}/lib/intel64
#BLAS = -Wl,-rpath ${MKLLIB} -Wl,--start-group -L${MKLLIB} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl
#for intel compilers #for intel compilers
#BLAS = -mkl #BLAS = -mkl
...@@ -100,14 +102,15 @@ BLAS = -L${MKLROOT}/lib/ -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm ...@@ -100,14 +102,15 @@ BLAS = -L${MKLROOT}/lib/ -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm
#BLAS = -L$(AMDROOT)/lib -lacml -lfortran -lffio -lrt -lm #BLAS = -L$(AMDROOT)/lib -lacml -lfortran -lffio -lrt -lm
#Intel MKL #Intel MKL
MKLROOT=/opt/intel/mkl/ MKLROOT=/opt/intel/mkl/
MKLLIB=${MKLROOT}/lib
OPTC += -DMKL -I$(MKLROOT)/include OPTC += -DMKL -I$(MKLROOT)/include
#for GNU compilers #for GNU compilers
#you might need to add intel64 to : ${MKLROOT}/lib/intel64 FFT = -Wl,-rpath ${MKLLIB} -L${MKLLIB} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
FFT = -L${MKLROOT}/lib/ -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl #on linux you want to use groups and MKL is in lib/intel64
#on linux you want to use groups #MKLLIB=${MKLROOT}/lib/intel64
#FFT = -Wl,--start-group -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl #FFT = -Wl,-rpath ${MKLLIB} -Wl,--start-group -L${MKLLIB} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl
#for intel compilers #for Intel compilers
#FFT = ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_sequential.a ${MKLROOT}/lib/libmkl_core.a -lpthread -lm -ldl #FFT = -Wl,-rpath ${MKLLIB} -L${MKLLIB} -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
#LIBARIES #LIBARIES
LIBS= -L$L -lgenfft $(FFT) $(BLAS) LIBS= -L$L -lgenfft $(FFT) $(BLAS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment