Warnings when using MKL
Follow-up of chameleon#99 (closed) and https://gitlab.inria.fr/solverstack/chameleon/-/merge_requests/240
With Chameleon, if I want to use the MKL, I get a lot of warnings at the end of the cmake execution:
CMake Error in coreblas/compute/CMakeLists.txt:
Imported target "MORSE::LAPACKE" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
To reproduce:
docker run -it debian
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get upgrade -y
apt-get install -y vim
# add "contrib non-free" to /etc/apt/sources.list
apt-get update -y
apt-get install -y git python cmake build-essential pkg-config libopenblas-dev liblapacke-dev libstarpu-dev hwloc libhwloc-dev gfortran libexpat-dev libtool-bin libmkl-dev
INSTALLDIR=$HOME/install
export PATH=$INSTALLDIR/bin:$PATH
export CPATH=$INSTALLDIR/include:$CPATH
export LIBRARY_PATH=$INSTALLDIR/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=$INSTALLDIR/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig:$PKG_CONFIG_PATH
cd $HOME
git clone https://gitlab.inria.fr/pm2/pm2.git
cd pm2/scripts
./pm2-build-packages ./pukabi+madmpi.conf --prefix=$INSTALLDIR
cd $HOME
git clone https://gitlab.inria.fr/starpu/starpu.git
cd starpu
./autogen.sh
mkdir build
cd build
../configure --enable-nmad --prefix=$INSTALLDIR --disable-opencl
make -j 3 && make -j 3 install
cd $HOME
git clone --recursive https://gitlab.inria.fr/solverstack/chameleon.git
cd chameleon
mkdir build
cd build
cmake .. -DCHAMELEON_USE_MPI=ON -DCHAMELEON_USE_MPI_DATATYPES=ON -DBLA_VENDOR=Intel10_64lp_seq # note: I usually don't provide CMAKE_INSTALL_PREFIX
But it's not blocking.