[petsc-users] [Ext] Re: error: identifier "MatCreateMPIAIJMKL" is undefined in 3.10.4

Mark Adams mfadams at lbl.gov
Tue Mar 26 10:22:33 CDT 2019


So this works with v3.8? I don't see any differences (I see Satish figured
this out and has suggestions).

You could also work around it with code like this:

 ierr = MatCreate(PETSC_COMM_WORLD,&A);CHKERRQ(ierr);
 ierr = MatSetType(A,MATAIJMKL);CHKERRQ(ierr);
 ierr = MatMPIAIJSetPreallocation(A,0,ourlens,0,offlens);

On Tue, Mar 26, 2019 at 11:00 AM Kun Jiao <KJiao at slb.com> wrote:

> [kjiao at hyi0016 src/lsqr]% make
>
> [ 50%] Building CXX object lsqr/CMakeFiles/p_lsqr.dir/lsqr.cc.o
>
> /wgdisk/hy3300/source_code_dev/imaging/kjiao/src/git/src/lsqr/lsqr.cc(318):
> error: identifier "MatCreateMPIAIJMKL" is undefined
>
>     ierr =
> MatCreateMPIAIJMKL(comm,m,n,M,N,maxnz,dialens,maxnz,offlens,&A);CHKERRQ(ierr);
>
>            ^
>
>
>
> /wgdisk/hy3300/source_code_dev/imaging/kjiao/src/git/src/lsqr/lsqr.cc(578):
> error: identifier "MatCreateMPIAIJMKL" is undefined
>
>     ierr =
> MatCreateMPIAIJMKL(comm,m,n,M,N,maxnz,dialens,maxnz,offlens,&A);CHKERRQ(ierr);
>
>            ^
>
>
>
> compilation aborted for
> /wgdisk/hy3300/source_code_dev/imaging/kjiao/src/git/src/lsqr/lsqr.cc (code
> 2)
>
>
>
> Thanks.
>
>
>
>
>
> *From:* Mark Adams <mfadams at lbl.gov>
> *Sent:* Tuesday, March 26, 2019 9:22 AM
> *To:* Kun Jiao <KJiao at slb.com>
> *Cc:* petsc-users at mcs.anl.gov
> *Subject:* Re: [Ext] Re: [petsc-users] error: identifier
> "MatCreateMPIAIJMKL" is undefined in 3.10.4
>
>
>
> 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.
>
>
>
> On Tue, Mar 26, 2019 at 10:08 AM Kun Jiao <KJiao at slb.com> wrote:
>
> It is compiling error, error message is:
>
>
>
> error: identifier "MatCreateMPIAIJMKL" is undefined.
>
>
>
>
>
>
>
>
>
>
>
> *From:* Mark Adams <mfadams at lbl.gov>
> *Sent:* Tuesday, March 26, 2019 6:48 AM
> *To:* Kun Jiao <KJiao at slb.com>
> *Cc:* petsc-users at mcs.anl.gov
> *Subject:* [Ext] Re: [petsc-users] error: identifier "MatCreateMPIAIJMKL"
> is undefined in 3.10.4
>
>
>
> Please send the output of the error (runtime, compile time, link time?)
>
>
>
> On Mon, Mar 25, 2019 at 10:50 PM Kun Jiao via petsc-users <
> petsc-users at mcs.anl.gov> wrote:
>
> Hi Petsc Experts,
>
>
>
> Is MatCreateMPIAIJMKL retired in 3.10.4?
>
>
>
> I got this error with my code which works fine in 3.8.3 version.
>
>
>
> Regards,
>
> Kun
>
>
>
>
>
> Schlumberger-Private
>
>
>
> Schlumberger-Private
>
>
>
> Schlumberger-Private
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190326/989e0c8f/attachment.html>


More information about the petsc-users mailing list