External software help
Hong Zhang
hzhang at mcs.anl.gov
Mon Feb 12 10:16:28 CST 2007
You may test the installation of superlu using
petsc example src/ksp/ksp/examples/tutorials/ex5.c:
e.g.,
./ex5 -ksp_type preonly -pc_type lu -mat_type superlu -ksp_view | more
KSP Object:
type: preonly
maximum iterations=10000, initial guess is zero
tolerances: relative=1e-05, absolute=1e-50, divergence=10000
left preconditioning
PC Object:
type: lu
LU: out-of-place factorization
matrix ordering: nd
LU: tolerance for zero pivot 1e-12
LU: factor fill ratio needed 0
Factored matrix follows
Matrix Object:
type=superlu, rows=6, cols=6
total: nonzeros=0, allocated nonzeros=6
not using I-node routines
SuperLU run parameters:
Equil: NO
ColPerm: 3
IterRefine: 0
SymmetricMode: NO
DiagPivotThresh: 1
PivotGrowth: NO
ConditionNumber: NO
RowPerm: 0
ReplaceTinyPivot: NO
PrintStat: NO
lwork: 0
linear system matrix = precond matrix:
Matrix Object:
type=superlu, rows=6, cols=6
total: nonzeros=20, allocated nonzeros=30
not using I-node routines
Norm of error < 1.e-12, Iterations 1
KSP Object:
...
> I've installed superlu. I issued the command ./a.out -mat_type
> superlu -ksp_type preonly -pc_type lu and it just hanged there. Is it
> because I had install it with mpich? I also wanted to try umfpack and
> plapack. Is it similar?
>
> Btw, plapack 's option isn't in pg 82 of the manual.
I'll add it. Thanks,
Hong
>
>
> Thank you.
>
>
> On 2/12/07, Satish Balay <balay at mcs.anl.gov> wrote:
> >
> > On Mon, 12 Feb 2007, Ben Tay wrote:
> >
> > > Hi,
> > >
> > > I'm trying to experiment with using external solvers. I have some
> > questions:
> > >
> > > 1. Is there any difference in speed with calling the external software
> > from
> > > PETSc or directly using them?
> >
> > There is minor conversion overhead when you use them from PETSc.
> >
> > >
> > > 2. I tried to install MUMPS using --download-mumps. I was prompted to
> > > include --with-scalapack. After changing, I was again prompted to
> > include
> > > --with-blacs. I changed and again I was told the need for
> > > --with-blacs-dir=<directory>. I thought I'm supposed to specify where to
> > > install blacs and entered a directory. But it seems that I need to
> > specify
> > > the location of where blacs is. But I do not have it. So how do I solve
> > > that?
> >
> > Mumps requires blacs & scalapack. So use:
> > --download-blacs=1 --download-scalapack=1 --download-mumps=1
> >
> > >
> > > 3. I installed some other external packages. I wanted to test their
> > speed at
> > > solving equations. In the manual, I was told to use the runtime option
> > > -mat_type <mattype> -ksp_type preonly -pc_type <pctype> and also -help
> > to
> > > get help msg. However when I tried to issue ./a.out -mat_type superlu
> > > -ksp_type preonly -pc_type lu, nothing happened. How should the command
> > be
> > > issued? I tried to get help by running ./a.out -h what appears isn't
> > what I
> > > want.
> >
> > Did you install PETSc with superlu_dist? If so use '-mat_type
> > superlu_dist'
> >
> > [Note: superlu & superlu_dist are different packages - the first one
> > is sequential - the second one is parallel]
> >
> > Satish
> >
> > >
> > > Thank you very much. Regards.
> > >
> >
> >
>
More information about the petsc-users
mailing list