FreeFEM v4.1 installation with MKL
Post date: 2019/05/14
Intel MKL を使って,FreeFEM v4.1 をインストールする
Intel MKL を使って,FreeFEM v4.1 をインストールする
- Install intel MKL, etc.
- Installing Intel® Performance Libraries and Intel® Distribution for Python* Using APT Repository ( https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo )
- Link option
- Intel® Math Kernel Library Link Line Advisor ( https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor )
- linux :
- LIBS= "-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl"
- CFLAGS="-DMKL_ILP64 -m64 -I${MKLROOT}/include"
- linux :
- Intel® Math Kernel Library Link Line Advisor ( https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor )
- ubuntu 18.04LTS [ 2019-05-19 ]
- Install Intel MKL
$ wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
$ sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
$ sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
$ sudo apt-get update
$ sudo apt-get install intel-mkl-64bit-2019.3-062
- Install FreeFEM (make install でも MKL用設定を読み込むことに注意)
$ source /opt/intel/compilers_and_libraries_2019.3.199/linux/bin/compilervars.sh intel64
$ git clone https://github.com/FreeFem/FreeFem-sources.git
$ cd FreeFem-sources
$ autoreconf -i
$ ./configure --enable-download --with-mkl=$MKLROOT/lib --enable-mkl_mlt
$ ./3rdparty/getall -a
$ cd 3rdparty/ff-petsc
$ make petsc-slepc SUDO=sudo
$ cd -
$ ./reconfigure
$ make
$ sudo bash
# source /opt/intel/compilers_and_libraries_2019.3.199/linux/bin/compilervars.sh intel64
# make install
- Install Intel MKL