Hi, recently, I have the same problem. When I complie the PETsc, it link
the debug_mt/linmpi.so. So I think the reason is that Petsc is complied in
Debugging, not Release. So I add the paras when configure the
Petsc,--with-debugging=0 and give the opt-paras, COPTFLAG="-O2"
CXXOPTFLAG="-O2" FOPTFLAG="-O2". Then the problm is solved.
On Monday, 30 July 2018 00:00:28 UTC+8, Eva Lilje wrote:
>
> Dear dealii Team,
>
> the Dealii Installation fails because it uses the wrong MPI Version of the
> intel compiler. It uses debug_mt instead of release_mt.
>
>
> ===
>
> WARNING! Compiling PETSc with no debugging, this should only be done for
> timing and production runs. All development should be done when configured
> using --with-debugging=1
> ===
>
>
>
> Looks good, uses the release_mt version of intel mpi 2018 / intel studio
> 2018
>
> Using PETSc configure options:
> --prefix=/home/tuamende/deal.ii-candi/petsc-3.9.0 --with-debugging=0
> --with-shared-libraries=1 --with-mpi=1 --with-x=0
> --with-mpi-dir=/cluster/intel/intel2018/impi/2018.1.163/intel64/
> --with-64-bit-indices=0 PETSC_ARCH=linux-gnu-intel --with-debugging=0
> --download-hypre=1
> --with-blaslapack-dir=/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64
>
> --with-parmetis-dir=/home/tuamende/deal.ii-candi/parmetis-4.0.3
> --with-metis-dir=/home/tuamende/deal.ii-candi/parmetis-4.0.3
> --download-scalapack=1 --download-mumps=1
>
> #define PETSC_MPICC_SHOW "icc
> -I/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/include
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib/release_mt
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib
>
> -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker
> /cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib/release_mt
>
> -Xlinker -rpath -Xlinker
> /cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib
>
> -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2017.0.0/intel64/lib/release_mt
> -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2017.0.0/intel64/lib -lmpifort
> -lmpi -lmpigi -ldl -lrt -lpthread"
>
>
> But then it decides to use only the debug version, even when the correct
> intel envs are set:
>
> export I_MPI_LIBRARY_KIND=release_mt
>
> source
> /cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/bin/mpivars.sh
>
> release_mt
>
>
> Using libraries:
> -Wl,-rpath,/home/tuamende/deal.ii-candi/tmp/build/slepc-3.9.2/installed-arch-linux2-c-opt/lib
>
> -L/home/tuamende/deal.ii-candi/tmp/build/slepc-3.9.2/installed-arch-linux2-c-opt/lib
>
> -lslepc -Wl,-rpath,/home/tuamende/deal.ii-candi/petsc-3.9.0/lib
> -L/home/tuamende/deal.ii-candi/petsc-3.9.0/lib
> -Wl,-rpath,/home/tuamende/deal.ii-candi/petsc-3.9.0/lib
> -L/home/tuamende/deal.ii-candi/petsc-3.9.0/lib
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64
>
> -Wl,-rpath,/home/tuamende/deal.ii-candi/parmetis-4.0.3/lib
> -L/home/tuamende/deal.ii-candi/parmetis-4.0.3/lib
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib/debug_mt
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib/debug_mt
>
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mpi/intel64/lib
>
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/ipp/lib/intel64
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/ipp/lib/intel64
>
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64_lin
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/compiler/lib/intel64_lin
>
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/mkl/lib/intel64_lin
>
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/tbb/lib/intel64/gcc4.7
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/tbb/lib/intel64/gcc4.7
>
> -Wl,-rpath,/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/daal/lib/intel64_lin
>
> -L/cluster/intel/intel2018/compilers_and_libraries_2018.1.163/linux/daal/lib/intel64_lin
>
> -Wl,-rpath,/cluster/comp/gcc/6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0
> -L/cluster/comp/gcc/6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0
> -Wl,-rpath,/cluster/comp/gcc/6.3.0/lib64