I am trying to link MKL with IPOPT for improved performance. I have read through the following thread which helped with a lot of my problems.
However, when I go to configure Ipopt using the following command.
$ ../configure --prefix=/usr/local/ --with-blas='-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_rt -lpthread -lm -ldl' CFLAGS='-m64 -I${MKLROOT}/include' CXXFLAGS='-m64 -I${MKLROOT}/include'
I get this error which seems cause problems when trying to build the ipopt libraries.
$ checking for COIN-OR package Mumps... not given: Variable 'MKLROOT' not defined in '/home/romela/Ipopt-3.12.10/build/ThirdParty/Mumps/coinmumps-uninstalled.pc
However, if I just install the non-optimized libraries through ThirdParty using ./get as instructed in https://www.coin-or.org/Ipopt/documentation/node13.html#SECTION00043100000000000000 then I get the following
$ checking for COIN-OR package Mumps... yes: 1.6.0
I source mklvar.sh in my .bashrc file and when I run the following
$ echo $MKLROOT
I get
$ /opt/intel/compilers_and_libraries_2018.2.199/linux/mkl
This appears that I am sourcing the MKL directory correctly. If anyone has any insight into my problem it would be greatly appreciated.