<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
> On May 29, 2018, at 3:05 AM, Najeeb Ahmad <nahmad16@ku.edu.tr> wrote:<br>
> <br>
> <br>
> <br>
> On Mon, May 28, 2018 at 9:32 PM, Smith, Barry F. <bsmith@mcs.anl.gov> wrote:<br>
> <br>
> <br>
> > On May 28, 2018, at 10:32 AM, Najeeb Ahmad <nahmad16@ku.edu.tr> wrote:<br>
> > <br>
> > Thanks a lot Satish for your prompt reply.<br>
> > <br>
> > I just checked that SuperLU_dist package works only for matrices of type aij. and uses lu preconditioner. I am currently working with baij matrix. What is the best preconditioner choice for baij matrices on parallel machines?<br>
> <br>
> The best preconditioner is always problem specific. Where does your problem come from? CFD? Structural mechanics? other apps?<br>
> <br>
> I am interested in writing solver for reservoir simulation employing FVM and unstructured grids. My main objective is to study performance of the code with different data structures/data layouts and architecture specific optimizations, specifically
targeting the multicore architectures like KNL for instance. Later the study may be extended to include GPUs. The options for switching between AIJ and BAIJ etc. are therefore very useful for my study.
<br>
> <br>
> The purpose why I wanted to change the preconditioner is that the default preconditioner is giving me different iterations count for different number of processesors. I would rather like a preconditioner that would give me same iteration count for
any processor count so that I can better compare the performance results. <br>
<br>
Pretty much all preconditioners will give at least slightly different iteration counts for different number of processes. This must be taken into account in evaluating the "performance" of the solver and its implementation.<br>
<br>
<br>
You can try -pc_type gamg or -pc_type hypre (also requires running ./configure with the additional option --download-hypre).<br>
<br>
> <br>
> Your suggestions in this regard are highly appreciated, specifically with reference to the following points:<br>
> <br>
> - Is it possible to explicitly use high bandwidth memory in PETSc for selected object placement (e.g. using memkind library for instance)?<br>
<br>
We've found that placing some objects in high bandwidth memory and some in regular memory is a painful and thankless task. You should just run all in high bandwidth memory, otherwise on KNL you will get really crappy performance.<br>
<br>
> - What would it take to take advantage of architecture specific compiler flags to achieve good performance on a given platform (e.g. -xMIC-AVX512 for AVX512 on KNL, #pragma SIMD etc.).
<br>
> <br>
We've found that just using these as compile time flags doesn't help much (that is the compiler is not smart enough to really take advantage of this vectorization).<br>
<br>
Please see the attached paper for a bunch of discussions about performance and KNL.<br>
<br>
Barry<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"> <br>
> Sorry for some very basic questions as I am a novice PETSc user. <br>
> <br>
> Thanks for your time :)<br>
> <br>
> Anyways you probably want to make your code be able to switch between AIJ and BAIJ at run time since the different formats support somewhat different solvers. If your code alls MatSetFromOptions then you can switch via the command line option -mat_type
aij or baij <br>
> <br>
> Barry<br>
> <br>
> > <br>
> > Thanks<br>
> > <br>
> > On Mon, May 28, 2018 at 8:23 PM, Satish Balay <balay@mcs.anl.gov> wrote:<br>
> > On Mon, 28 May 2018, Najeeb Ahmad wrote:<br>
> > <br>
> > > Hi All,<br>
> > > <br>
> > > I have Petsc release version 3.9.2 configured with the following options:<br>
> > > <br>
> > > Configure options --with-cc=mpiicc --with-cxx=mpiicpc --with-fc=mpiifort<br>
> > > --download-fblaslapack=1<br>
> > > <br>
> > > Now I want to use PCILU in my code and when I set the PC type to PCILU in<br>
> > > the code, I get the following error:<br>
> > > <br>
> > > [0]PETSC ERROR: --------------------- Error Message<br>
> > > --------------------------------------------------------------<br>
> > > [0]PETSC ERROR: See<br>
> > > <a href="http://www.mcs.anl.gov/petsc/documentation/linearsolvertable.html">
http://www.mcs.anl.gov/petsc/documentation/linearsolvertable.html</a> for<br>
> > > possible LU and Cholesky solvers<br>
> > > [0]PETSC ERROR: Could not locate a solver package. Perhaps you must<br>
> > > ./configure with --download-<package><br>
> > > [0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html">
http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for<br>
> > > trouble shooting.<br>
> > > [0]PETSC ERROR: Petsc Release Version 3.9.2, unknown<br>
> > > [0]PETSC ERROR: ./main on a arch-linux2-c-debug named Karachi by nahmad Mon<br>
> > > May 28 17:52:41 2018<br>
> > > [0]PETSC ERROR: Configure options --with-cc=mpiicc --with-cxx=mpiicpc<br>
> > > --with-fc=mpiifort --download-fblaslapack=1<br>
> > > [0]PETSC ERROR: #1 MatGetFactor() line 4318 in<br>
> > > /home/nahmad/PETSc/petsc/src/mat/interface/matrix.c<br>
> > > [0]PETSC ERROR: #2 PCSetUp_ILU() line 142 in<br>
> > > /home/nahmad/PETSc/petsc/src/ksp/pc/impls/factor/ilu/ilu.c<br>
> > > [0]PETSC ERROR: #3 PCSetUp() line 923 in<br>
> > > /home/nahmad/PETSc/petsc/src/ksp/pc/interface/precon.c<br>
> > > [0]PETSC ERROR: #4 KSPSetUp() line 381 in<br>
> > > /home/nahmad/PETSc/petsc/src/ksp/ksp/interface/itfunc.c<br>
> > > [0]PETSC ERROR: #5 KSPSolve() line 612 in<br>
> > > /home/nahmad/PETSc/petsc/src/ksp/ksp/interface/itfunc.c<br>
> > > [0]PETSC ERROR: #6 SolveSystem() line 60 in<br>
> > > /home/nahmad/Aramco/petsc/petsc/BlockSolveTest/src/main.c<br>
> > > <br>
> > > <br>
> > > I assume that I am missing LU package like SuperLU_dist for instance and I<br>
> > > need to download and configure it with Petsc.<br>
> > <br>
> > yes - petsc has sequential LU - but you need superlu_dist/mumps for parallel lu.<br>
> > <br>
> > > <br>
> > > I am wondering what is the best way to reconfigure Petsc to download and<br>
> > > use the appropriate package to support PCILU?<br>
> > <br>
> > Rerun configure with the additional option --download-superlu_dist=1.<br>
> > <br>
> > You can do this with current PETSC_ARCH you are using [i.e reinstall<br>
> > over the current build] - or use a different PETSC_ARCH - so both<br>
> > builds exist and useable.<br>
> > <br>
> > Satish<br>
> > <br>
> > > <br>
> > > You advice is highly appreciated.<br>
> > > <br>
> > > <br>
> > <br>
> > <br>
> > <br>
> > <br>
> > -- <br>
> > Najeeb Ahmad<br>
> > <br>
> > Research and Teaching Assistant<br>
> > PARallel and MultiCORE Computing Laboratory (ParCoreLab) <br>
> > Computer Science and Engineering<br>
> > Koç University, Istanbul, Turkey<br>
> > <br>
> <br>
> <br>
> <br>
> <br>
> -- <br>
> Najeeb Ahmad<br>
> <br>
> Research and Teaching Assistant<br>
> PARallel and MultiCORE Computing Laboratory (ParCoreLab) <br>
> Computer Science and Engineering<br>
> Koç University, Istanbul, Turkey<br>
> <br>
<br>
</div>
</span></font></div>
</body>
</html>