<div dir="ltr"><div dir="ltr">On Wed, Oct 11, 2023 at 4:22 AM Richter, Roland <<a href="mailto:Roland.Richter@empa.ch" target="_blank">Roland.Richter@empa.ch</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><div lang="NO-BOK"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Hei,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">following my last question I managed to configure PETSc with Intel MPI and Intel OneAPI using the following configure-line:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><i><span lang="EN-US" style="font-size:11pt">./configure --prefix=/media/storage/local_opt/petsc --with-scalar-type=complex --with-cc=mpiicc --with-cxx=mpiicpc --CPPFLAGS="-fPIC -march=native -mavx2" --CXXFLAGS="-fPIC -march=native -mavx2" --with-fc=mpiifort --with-pic=true --with-mpi=true --with-blaslapack-dir=/opt/intel/oneapi/mkl/latest/lib/intel64/ --with-openmp=true --download-hdf5=yes --download-netcdf=yes --download-chaco=no --download-metis=yes --download-slepc=yes --download-suitesparse=yes --download-eigen=yes --download-parmetis=yes --download-ptscotch=yes --download-mumps=yes --download-scalapack=yes --download-superlu=yes --download-superlu_dist=yes --with-mkl_pardiso=1 --with-boost=1 --with-boost-dir=/media/storage/local_opt/boost --download-opencascade=yes --with-fftw=1 --with-fftw-dir=/media/storage/local_opt/fftw3 --download-kokkos=yes --with-mkl_sparse=1 --with-mkl_cpardiso=1 --with-mkl_sparse_optimize=1 --download-muparser=yes --download-p4est=yes --download-sowing=yes --download-viennalcl=yes --with-zlib --force=1 --with-clean=1 --with-cuda=0<u></u><u></u></span></i></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Now, however, compilation fails with the following error:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">/home/user/Downloads/git-files/petsc/include/../src/ksp/f90-mod/ftn-auto-interfaces/petscpc.h90(699): error #6623: The procedure name of the INTERFACE block conflicts with a name in the encompassing scoping unit.   [PCGASMCREATESUBDOMAINS2D]<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">      subroutine PCGASMCreateSubdomains2D(a,b,c,d,e,f,g,h,i,j,z)<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">-----------------^<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">/home/user/Downloads/git-files/petsc/include/../src/ksp/f90-mod/ftn-auto-interfaces/petscpc.h90(1199): error #6623: The procedure name of the INTERFACE block conflicts with a name in the encompassing scoping unit.   [PCASMCREATESUBDOMAINS2D]<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">      subroutine PCASMCreateSubdomains2D(a,b,c,d,e,f,g,h,i,z)<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">-----------------^<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">I'm on the latest version of origin/main, but can't figure out how to fix that issue by myself. Therefore, I'd appreciate additional insight.</span></p></div></div></div></blockquote><div><br></div><div>You have old build files in the tree. We changed the Fortran stubs to be generated in the PETSC_ARCH tree so that you can build the stubs for different branches in the same PETSc tree. You have old stubs in the src tree. You can get rid of these using</div><div><br></div><div>  git clean -f -d -x</div><div><br></div><div>unless you have your own files in the source tree, in which case you need to remove the ftn-auto-interfaces directories yourself.</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><div lang="NO-BOK"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Thanks!<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Regards,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Roland Richter<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p></div></div></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>