From bbb25de02f36e66b8ed018f984c440644c57d47e Mon Sep 17 00:00:00 2001 From: Jan Thorbecke <janth@xs4all.nl> Date: Mon, 11 Mar 2019 14:49:27 +0100 Subject: [PATCH] MKL standard for GNU compilers --- Make_include_template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Make_include_template b/Make_include_template index 838b443..67ba438 100644 --- a/Make_include_template +++ b/Make_include_template @@ -87,6 +87,8 @@ MKLROOT=/opt/intel/mkl/ #for GNU compilers #you might need to add intel64 to : ${MKLROOT}/lib/intel64 BLAS = -L${MKLROOT}/lib/ -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl +#on linux you want to use a group +#BLAS = -Wl,--start-group -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl #for intel compilers #BLAS = -mkl @@ -102,6 +104,8 @@ OPTC += -DMKL -I$(MKLROOT)/include #for GNU compilers #you might need to add intel64 to : ${MKLROOT}/lib/intel64 FFT = -L${MKLROOT}/lib/ -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl +#on linux you want to use groups +#FFT = -Wl,--start-group -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl #for intel compilers #FFT = ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_sequential.a ${MKLROOT}/lib/libmkl_core.a -lpthread -lm -ldl -- GitLab