<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""/></div><div class="">I am having issues compiling PETsc on a cluster using the following configure command. </div><div class=""><br class=""/></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">./configure --force \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --with-64-bit-indices=1 \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --with-precision=double \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --with-debugging=0 \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --COPTFLAGS=-O3 \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --CXXOPTFLAGS=-O3 \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --FOPTFLAGS=-O3 \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> PETSC_ARCH=$WM_OPTIONS \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --with-blaslapack-dir=$MKLROOT \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --with-mkl_sparse-dir=$MKLROOT \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --with-mkl_sparse_optimize-dir=$MKLROOT \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --with-mpi-dir=$MPI_ARCH_PATH \</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""> --download-hypre </div></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""/></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">Where</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""/></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">MKLROOT=/scratch/app_sequana/intel-oneapi/2021.1.0-2659/mkl/2021.1.1</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">WM_OPTIONS=linux64GccDPInt64Opt</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-family: "Helvetica Neue"; font-size: 13px; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">MPI_ARCH_PATH=</span><font color="#000000" face="Helvetica Neue" size="2" class=""><span style="caret-color: rgb(0, 0, 0);" class="">/scratch/app_sequana/openmpi/2.1.1</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" face="Helvetica Neue" size="2" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/></span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" face="Helvetica Neue" size="2" class=""><span style="caret-color: rgb(0, 0, 0);" class="">-----</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" face="Helvetica Neue" size="2" class=""><span style="caret-color: rgb(0, 0, 0);" class="">$ make --version<br class=""/>GNU Make 3.82<br class=""/>Built for x86_64-redhat-linux-gnu<br class=""/></span></font><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">------</div><div class=""><br class=""/></div></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""/></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">------</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><span style="font-size: small;" class="">$ls $MKLROOT/lib/intel64 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Helvetica Neue" size="2" class=""><br class=""/></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Helvetica Neue" size="2" class="">libmkl_avx2.so.1 libmkl_blacs_sgimpt_ilp64.so libmkl_gf_lp64.a libmkl_mc3.so.1 libmkl_sycl.so<br class=""/>libmkl_avx512_mic.so.1 libmkl_blacs_sgimpt_ilp64.so.1 libmkl_gf_lp64.so libmkl_mc.so.1 libmkl_sycl.so.1<br class=""/>libmkl_avx512.so.1 libmkl_blacs_sgimpt_lp64.a libmkl_gf_lp64.so.1 libmkl_pgi_thread.a libmkl_tbb_thread.a<br class=""/>libmkl_avx.so.1 libmkl_blacs_sgimpt_lp64.so libmkl_gnu_thread.a libmkl_pgi_thread.so libmkl_tbb_thread.so<br class=""/>libmkl_blacs_intelmpi_ilp64.a libmkl_blacs_sgimpt_lp64.so.1 libmkl_gnu_thread.so libmkl_pgi_thread.so.1 libmkl_tbb_thread.so.1<br class=""/>libmkl_blacs_intelmpi_ilp64.so libmkl_blas95_ilp64.a libmkl_gnu_thread.so.1 libmkl_rt.so libmkl_vml_avx2.so.1<br class=""/>libmkl_blacs_intelmpi_ilp64.so.1 libmkl_blas95_lp64.a libmkl_intel_ilp64.a libmkl_rt.so.1 libmkl_vml_avx512_mic.so.1<br class=""/>libmkl_blacs_intelmpi_lp64.a libmkl_cdft_core.a libmkl_intel_ilp64.so libmkl_scalapack_ilp64.a libmkl_vml_avx512.so.1<br class=""/>libmkl_blacs_intelmpi_lp64.so libmkl_cdft_core.so libmkl_intel_ilp64.so.1 libmkl_scalapack_ilp64.so libmkl_vml_avx.so.1<br class=""/>libmkl_blacs_intelmpi_lp64.so.1 libmkl_cdft_core.so.1 libmkl_intel_lp64.a libmkl_scalapack_ilp64.so.1 libmkl_vml_cmpt.so.1<br class=""/>libmkl_blacs_openmpi_ilp64.a libmkl_core.a libmkl_intel_lp64.so libmkl_scalapack_lp64.a libmkl_vml_def.so.1<br class=""/>libmkl_blacs_openmpi_ilp64.so libmkl_core.so libmkl_intel_lp64.so.1 libmkl_scalapack_lp64.so libmkl_vml_mc2.so.1<br class=""/>libmkl_blacs_openmpi_ilp64.so.1 libmkl_core.so.1 libmkl_intel_thread.a libmkl_scalapack_lp64.so.1 libmkl_vml_mc3.so.1<br class=""/>libmkl_blacs_openmpi_lp64.a libmkl_def.so.1 libmkl_intel_thread.so libmkl_sequential.a libmkl_vml_mc.so.1<br class=""/>libmkl_blacs_openmpi_lp64.so libmkl_gf_ilp64.a libmkl_intel_thread.so.1 libmkl_sequential.so locale<br class=""/>libmkl_blacs_openmpi_lp64.so.1 libmkl_gf_ilp64.so libmkl_lapack95_ilp64.a libmkl_sequential.so.1<br class=""/>libmkl_blacs_sgimpt_ilp64.a libmkl_gf_ilp64.so.1 libmkl_lapack95_lp64.a libmkl_sycl.a</font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class="">------</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""/></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">I am running code that requires mat_type mpiaijmkl, but unfortunately it seems that <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">mpiaijmkl.c is not compiled and I get the error: </span><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""> PETSC ERROR: Unknown Mat type given: mpiaijmkl</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""/></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class="">------</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">$ls linux64GccDPInt64Opt/obj/mat/impls/aij/mpi/</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/>aijperm fdmpiaij.d ftn-custom mpb_aij.d mpiaij.o mpimatmatmatmult.d mpimatmatmult.o mpiov.d mpiptap.o<br class=""/>aijsell fdmpiaij.o mmaij.d mpb_aij.o mpiaijpc.d mpimatmatmatmult.o mpimattransposematmult.d mpiov.o<br class=""/>crl ftn-auto mmaij.o mpiaij.d mpiaijpc.o mpimatmatmult.d mpimattransposematmult.o mpiptap.d</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class="">------</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "Helvetica Neue"; font-size: 13px;" class=""><br class=""/></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">In the make.log I see:</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/></span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">PETSC_HAVE_MKL 1</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/></span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class="">But the variable PETSC_HAVE_MKL_SPARSE is not set, and according to src/mat/impls/aij/mpi/aijmkl/makefile it should be set to 1 for the file to be included in the compilation.</font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""/></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class="">I have searched in the user list and tried different configure options, but so far without success. Any guidance is highly appreciated. Attached are the configure and make logs.</font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><br class=""/></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class="">Cheers,</font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class="">Juan S.</font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><br class=""/></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""></div></body></html><html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><div style="margin: 0px; font-stretch: normal; line-height: normal;"></div></body></html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/></span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/></span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/></span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""/></span></font><br class=""/></div></body></html>