<div dir="ltr">Thanks a lot Satish. I will try it out.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 20, 2018 at 1:56 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hm - matlab [64bit] uses ILP64 mkl.<br>
<br>
You can try using the same ILP64 mkl from matlab - and compare.<br>
<br>
for eg:<br>
<br>
./configure PETSC_ARCH=arch-test --with-blaslapack-lib=/soft/com/packages/MATLAB/R2016abin/glnxa64/mkl.so -known-64-bit-blas-indices=1 <br>
<br>
Or use openblas:<br>
<br>
./configure --download-openblas --download-openblas-64-bit-blas-indices=1<br>
<br>
Satish<br>
<br>
On Wed, 20 Jun 2018, Najeeb Ahmad wrote:<br>
<br>
> Thanks for your prompt response Satish.<br>
> <br>
> I was getting difference in results precision between PETSc and MATLAB and<br>
> therefore wanted to try if PetscReal precision is an issue. Just noted that<br>
> KSP is converging with Residual norm of 9.283109e-02 although I have<br>
> specified -ksp_atol 1E-10 in my command options. Here is the solver setup<br>
> code:<br>
> <br>
> ierr = KSPCreate(PETSC_COMM_WORLD,&ksp);CHKERRQ(ierr);<br>
> ierr = KSPSetOperators(ksp,A,A);CHKERRQ(ierr);<br>
> ierr = KSPSetType(ksp, KSPGMRES);CHKERRQ(ierr);<br>
> ierr = KSPGetPC(ksp,&pc);CHKERRQ(ierr);<br>
> ierr = PCSetType(pc, PCJACOBI);<br>
> ierr = KSPSetFromOptions(ksp);CHKERRQ(ierr);<br>
> ierr = KSPSetUp(ksp);CHKERRQ(ierr);<br>
> <br>
> Thanks for your assistance.<br>
> <br>
> On Wed, Jun 20, 2018 at 1:13 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > Yes - <a href="http://ftp.mcs.anl.gov" rel="noreferrer" target="_blank">ftp.mcs.anl.gov</a> is down - and likely to be down for many hours.<br>
> ><br>
> > Sorry for the inconvinence.<br>
> ><br>
> > Unless quad precision is needed - system blas (on most machines) should<br>
> > work.<br>
> ><br>
> > Satish<br>
> ><br>
> ><br>
> > On Wed, 20 Jun 2018, Najeeb Ahmad wrote:<br>
> ><br>
> > > Hi,<br>
> > ><br>
> > > I am trying to configure PETSc with --download-f2cblaslapack but the<br>
> > > library couldn't be downloaded. I also tried to access the URL manually<br>
> > but<br>
> > > it is not accessible. Is the download server under maintenance? The URLs<br>
> > > tried by PETSc for the download are:<br>
> > ><br>
> > ><br>
> > <a href="http://ftp.mcs.anl.gov/pub/petsc/externalpackages/f2cblaslapack-3.4.2.q3.tar.gz" rel="noreferrer" target="_blank">http://ftp.mcs.anl.gov/pub/petsc/externalpackages/f2cblaslapack-3.4.2.q3.tar.gz</a><br>
> > ><br>
> > > and<br>
> > ><br>
> > ><br>
> > <a href="ftp://ftp.mcs.anl.gov/pub/petsc/externalpackages/f2cblaslapack-3.4.2.q3.tar.gz" rel="noreferrer" target="_blank">ftp://ftp.mcs.anl.gov/pub/petsc/externalpackages/f2cblaslapack-3.4.2.q3.tar.gz</a><br>
> > ><br>
> > > Thanks for your assistance.<br>
> > ><br>
> > ><br>
> ><br>
> ><br>
> <br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div></div><font size="2"><b><span style="color:rgb(7,55,99)"><i>Najeeb Ahmad</i></span></b></font></div><div><font size="2"><b><font color="#073763"><i><br></i></font></b></font><div dir="ltr" style="font-size:small"><div><font size="2"><b><span style="color:rgb(120,63,4)">Research and Teaching Assistant</span><br></b></font></div><div><font size="2"><b><font color="#000000">PARallel and MultiCORE Computing Laboratory (ParCoreLab)</font><span style="color:rgb(120,63,4)"> </span></b></font></div><font size="2"><b>Computer Science and Engineering<br></b></font></div><div style="font-size:small"><font size="2"><b>Koç University, Istanbul, Turkey</b></font></div></div></div></div><div><font size="2"><b><br></b></font></div></div></div></div></div></div></div></div>