<div dir="ltr"><div>Could you just use "--with-cc=mpiicx --with-cxx=mpiicpx" ?  In addition, you can export environment vars I_MPI_CC=icx  and I_MPI_CXX=icpx to specify the underlying compilers.</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 9, 2023 at 7:33 AM Richter, Roland <<a href="mailto:Roland.Richter@empa.ch">Roland.Richter@empa.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg7003044189630523554"><div lang="NO-BOK" style="overflow-wrap: break-word;"><div class="m_7003044189630523554WordSection1"><p class="MsoNormal"><span lang="DE" style="font-size:11pt">Hei,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">I'm currently trying to install PETSc on a server (Ubuntu 22.04) with Intel MPI and Intel OneAPI. To combine both, I have to use f. ex. "mpiicc -cc=icx" as C-compiler, as described by <a href="https://stackoverflow.com/a/76362396" target="_blank">https://stackoverflow.com/a/76362396</a>. Therefore, I adapted the configure-line as follow:<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 -cc=icx" --with-cxx="mpiicpc -cxx=icpx" --CPPFLAGS="-fPIC -march=native -mavx2" --CXXFLAGS="-fPIC -march=native -mavx2" --with-fc="mpiifort -fc=ifx" --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=no --download-p4est=yes --download-sowing=yes --download-viennalcl=yes --with-zlib --force=1 --with-clean=1 --with-cuda=1<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">The configuration, however, fails with <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">The CMAKE_C_COMPILER:<u></u><u></u></span></i></p><p class="MsoNormal"><i><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></i></p><p class="MsoNormal"><i><span lang="EN-US" style="font-size:11pt">    mpiicc -cc=icx<u></u><u></u></span></i></p><p class="MsoNormal"><i><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></i></p><p class="MsoNormal"><i><span lang="EN-US" style="font-size:11pt">  is not a full path and was not found in the PATH<u></u><u></u></span></i></p><p class="MsoNormal"><i><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></i></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">for all additional modules which use a cmake-based configuration approach (such as OPENCASCADE). How could I solve that problem?<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"><span lang="EN-US" style="font-size:11pt">Thank you!<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 lang="EN-US" style="font-size:11pt"> <u></u><u></u></span></p></div></div></div></blockquote></div>