<div dir="ltr">So this works with v3.8? I don't see any differences (I see Satish figured this out and has suggestions).<div><br></div><div>You could also work around it with code like this:<br><div><br> ierr = MatCreate(PETSC_COMM_WORLD,&A);CHKERRQ(ierr);<br> ierr = MatSetType(A,MATAIJMKL);CHKERRQ(ierr);<br> ierr = MatMPIAIJSetPreallocation(A,0,ourlens,0,offlens);</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 26, 2019 at 11:00 AM Kun Jiao <<a href="mailto:KJiao@slb.com">KJiao@slb.com</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 lang="EN-US">
<div class="gmail-m_-8394303466987092450WordSection1">
<p class="MsoNormal">[kjiao@hyi0016 src/lsqr]% make<u></u><u></u></p>
<p class="MsoNormal">[ 50%] Building CXX object lsqr/CMakeFiles/p_lsqr.dir/lsqr.cc.o<u></u><u></u></p>
<p class="MsoNormal">/wgdisk/hy3300/source_code_dev/imaging/kjiao/src/git/src/lsqr/lsqr.cc(318): error: identifier "MatCreateMPIAIJMKL" is undefined<u></u><u></u></p>
<p class="MsoNormal"> ierr = MatCreateMPIAIJMKL(comm,m,n,M,N,maxnz,dialens,maxnz,offlens,&A);CHKERRQ(ierr);<u></u><u></u></p>
<p class="MsoNormal"> ^<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">/wgdisk/hy3300/source_code_dev/imaging/kjiao/src/git/src/lsqr/lsqr.cc(578): error: identifier "MatCreateMPIAIJMKL" is undefined<u></u><u></u></p>
<p class="MsoNormal"> ierr = MatCreateMPIAIJMKL(comm,m,n,M,N,maxnz,dialens,maxnz,offlens,&A);CHKERRQ(ierr);<u></u><u></u></p>
<p class="MsoNormal"> ^<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">compilation aborted for /wgdisk/hy3300/source_code_dev/imaging/kjiao/src/git/src/lsqr/lsqr.cc (code 2)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>From:</b> Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> <br>
<b>Sent:</b> Tuesday, March 26, 2019 9:22 AM<br>
<b>To:</b> Kun Jiao <<a href="mailto:KJiao@slb.com" target="_blank">KJiao@slb.com</a>><br>
<b>Cc:</b> <a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a><br>
<b>Subject:</b> Re: [Ext] Re: [petsc-users] error: identifier "MatCreateMPIAIJMKL" is undefined in 3.10.4<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I assume the whole error message will have the line of code. Please send the whole error message and line of offending code if not included.<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Mar 26, 2019 at 10:08 AM Kun Jiao <<a href="mailto:KJiao@slb.com" target="_blank">KJiao@slb.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">It is compiling error, error message is:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">error: identifier "MatCreateMPIAIJMKL" is undefined.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b>From:</b> Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>>
<br>
<b>Sent:</b> Tuesday, March 26, 2019 6:48 AM<br>
<b>To:</b> Kun Jiao <<a href="mailto:KJiao@slb.com" target="_blank">KJiao@slb.com</a>><br>
<b>Cc:</b> <a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a><br>
<b>Subject:</b> [Ext] Re: [petsc-users] error: identifier "MatCreateMPIAIJMKL" is undefined in 3.10.4<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Please send the output of the error (runtime, compile time, link time?)<u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Mar 25, 2019 at 10:50 PM Kun Jiao via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">Hi Petsc Experts,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Is MatCreateMPIAIJMKL retired in 3.10.4?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I got this error with my code which works fine in 3.8.3 version.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Kun<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="gmail-m_-8394303466987092450gmail-m6817118223821606045gmail-m-3232964035785937293msipfooter6d2e06ff" align="center" style="margin:0in 0in 0.0001pt;text-align:center">
<span style="font-size:10pt;color:black">Schlumberger-Private</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="gmail-m_-8394303466987092450gmail-m6817118223821606045msipfooter6d2e06ff" align="center" style="margin:0in 0in 0.0001pt;text-align:center">
<span style="font-size:10pt;color:black">Schlumberger-Private</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="gmail-m_-8394303466987092450msipfooter6d2e06ff" align="center" style="margin:0in 0in 0.0001pt;text-align:center">
<span style="font-size:10pt;color:black">Schlumberger-Private</span><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>