[petsc-users] Installation issues based on Petsc-pardiso et metis

Matthew Knepley knepley at gmail.com
Thu Apr 6 06:38:42 CDT 2023


On Thu, Apr 6, 2023 at 5:21 AM ziming xiong <xiongziming2010 at gmail.com>
wrote:

> Hello,
> I want configure Petsc with pardiso and metis , but there is still error,
>

This seems like a fundamental misunderstanding.

There are two ways to run on a Windows machine:

  1) You can use Windows compilers and generate .lib libraries. This is
what you are currently doing.

  2) You can use WSL2 or MSYS, using UNIX compilers, generating .a archives
and .so shared libraries.

When you built Metis, you used strategy 2) since we see

Executing: win32fe cl  -o
/cygdrive/c/Users/XiongZiming/AppData/Local/Temp/petsc-r1s2t4wp/config.libraries/conftest.exe
   -g
/cygdrive/c/Users/XiongZiming/AppData/Local/Temp/petsc-r1s2t4wp/config.libraries/conftest.o
 -L/cygdrive/f/metis-5.1.0/build -L/cygdrive/f/metis-5.1.0/build -lmetis
Ws2_32.lib
stdout: LINK : fatal error LNK1104: cannot open file 'libmetis.lib'
Possible ERROR while running linker: exit code 2
stdout:
LINK : fatal error LNK1104: cannot open file 'libmetis.lib'
Linker output before filtering:
LINK : fatal error LNK1104: cannot open file 'libmetis.lib'
Linker output after filtering:
LINK : fatal error LNK1104: cannot open file 'libmetis.lib'

Personally, I find strategy 2) easier to deal with, especially for external
libraries.

  Thanks,

     Matt


> I work with the following code for pardiso:
>  ./configure
>  --with-cc="win32fe cl"
> --with-fc=0
>  --with-cxx="win32fe cl"
> --with-shared-libraries=0
> --with-mpi-dir="/cygdrive/c/PROGRA~2/Intel/MPI"
> --with-mpiexec="/cygdrive/c/PROGRA~1/Microsoft_MPI/Bin/mpiexec"
> --with-blaslapack-dir="/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest"
> --with-mkl_pardiso-dir="/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest"
>
> the configure_error_with_pardiso.log is the configure log file.
>
> For metis, i used code:
>  ./configure
> --with-metis-lib=/cygdrive/f/metis-5.1.0/build/libmetis
>  --with-metis-include=/cygdrive/f/metis-5.1.0/include
> --with-cc="win32fe cl"
>  --with-fc=0
>  --with-cxx="win32fe cl"
>  --with-shared-libraries=0
>  --with-mpi-dir="/cygdrive/c/PROGRA~2/Intel/MPI"
>  --with-mpiexec="/cygdrive/c/PROGRA~1/Microsoft_MPI/Bin/mpiexec"
>  --with-blaslapack-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/lib/intel64
> mkl_intel_lp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib"
>
> But there is the error as follow:
>   --with-metis-lib=['/cygdrive/f/metis-5.1.0/build/libmetis'] and
>   --with-metis-include=['/cygdrive/f/metis-5.1.0/include'] did not work
>
> which the configure_error_with_metis is the configure file for metis.
>
> I also try to use --download-metis for configure with metis, but there is
> the Error configuring METIS with CMake. If u want I can send the
> configure.log file
>
> Please help me to configure with these external packages. I've been stuck
> in this stage for a long time
>
> Best regards,
> Ziming XIONG
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230406/5e4ee523/attachment.html>


More information about the petsc-users mailing list