<div dir="ltr"><div dir="ltr">On Thu, Apr 6, 2023 at 5:21 AM ziming xiong <<a href="mailto:xiongziming2010@gmail.com">xiongziming2010@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I want configure Petsc with pardiso and metis , but there is still error,</div></div></blockquote><div><br></div><div>This seems like a fundamental misunderstanding.</div><div><br></div><div>There are two ways to run on a Windows machine:</div><div><br></div><div> 1) You can use Windows compilers and generate .lib libraries. This is what you are currently doing.</div><div><br></div><div> 2) You can use WSL2 or MSYS, using UNIX compilers, generating .a archives and .so shared libraries.</div><div><br></div><div>When you built Metis, you used strategy 2) since we see</div><div><br></div><div>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<br>stdout: LINK : fatal error LNK1104: cannot open file 'libmetis.lib'<br>Possible ERROR while running linker: exit code 2<br>stdout:<br>LINK : fatal error LNK1104: cannot open file 'libmetis.lib'<br>Linker output before filtering:<br>LINK : fatal error LNK1104: cannot open file 'libmetis.lib'<br>Linker output after filtering:<br>LINK : fatal error LNK1104: cannot open file 'libmetis.lib'<br></div><div><br></div><div>Personally, I find strategy 2) easier to deal with, especially for external libraries.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I work with the following code for pardiso:</div><div><div> ./configure</div><div> --with-cc="win32fe cl" </div><div>--with-fc=0 </div><div> --with-cxx="win32fe cl" </div><div>--with-shared-libraries=0 </div><div>--with-mpi-dir="/cygdrive/c/PROGRA~2/Intel/MPI" </div><div>--with-mpiexec="/cygdrive/c/PROGRA~1/Microsoft_MPI/Bin/mpiexec" </div><div>--with-blaslapack-dir="/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest" </div><div>--with-mkl_pardiso-dir="/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest"</div></div><div><br></div><div>the configure_error_with_pardiso.log is the configure log file.</div><div><br></div><div>For metis, i used code:</div><div> ./configure </div><div>--with-metis-lib=/cygdrive/f/metis-5.1.0/build/libmetis</div><div> --with-metis-include=/cygdrive/f/metis-5.1.0/include </div><div>--with-cc="win32fe cl" </div><div> --with-fc=0 </div><div> --with-cxx="win32fe cl" </div><div> --with-shared-libraries=0 </div><div> --with-mpi-dir="/cygdrive/c/PROGRA~2/Intel/MPI" </div><div> --with-mpiexec="/cygdrive/c/PROGRA~1/Microsoft_MPI/Bin/mpiexec" </div><div> --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"</div><div><br></div><div>But there is the error as follow:</div><div> --with-metis-lib=['/cygdrive/f/metis-5.1.0/build/libmetis'] and<br> --with-metis-include=['/cygdrive/f/metis-5.1.0/include'] did not work<br></div><div><br></div><div>which the configure_error_with_metis is the configure file for metis.</div><div><br></div><div>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</div><div><br></div><div>Please help me to configure with these external packages. I've been stuck in this stage for a long time</div><div><br></div><div>Best regards,</div><div>Ziming XIONG</div><br></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>