-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkl.mk
18 lines (15 loc) · 862 Bytes
/
mkl.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#MKL_ROOT_DIR=/opt/intel/oneapi
#MKL_COMP_DIR="${MKL_ROOT_DIR}/compiler/2023.2.0/linux/compiler"
ifeq ($(MACH_FLAG), TUHH)
MKL_ROOT_DIR:=/fs5/rzpool/intel/2022
MKL_BLAS_DIR:=${MKL_ROOT_DIR}/mkl/latest
MKL_COMP_DIR:=${MKL_ROOT_DIR}/compiler/latest/linux/compiler
BLAS_INC:=-I${MKL_BLAS_DIR}/include
BLAS_LIB:=-Wl,--start-group ${MKL_BLAS_DIR}/lib/intel64/libmkl_intel_ilp64.a ${MKL_BLAS_DIR}/lib/intel64/libmkl_intel_thread.a ${MKL_BLAS_DIR}/lib/intel64/libmkl_core.a ${MKL_COMP_DIR}/lib/intel64_lin/libiomp5.a -Wl,--end-group
else
MKL_BLAS_DIR:=/usr/lib/x86_64-linux-gnu
BLAS_INC:=-I/usr/include/mkl
BLAS_LIB:=-Wl,--start-group ${MKL_BLAS_DIR}/libmkl_intel_ilp64.a ${MKL_BLAS_DIR}/libmkl_intel_thread.a ${MKL_BLAS_DIR}/libmkl_core.a -Wl,--end-group -liomp5
endif
BLAS_LIB+=-lm -ldl -m64
BLAS_FLAGS:=-DMKL_ILP64 -m64 -DUSE_MKL