<div dir="ltr">Thanks, Satish,<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 9, 2017 at 12:36 PM, Satish Balay <span dir="ltr"><<a target="_blank" href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">We can add more entries to the lookup. The stack below looks<br>
incomplete. Which routine is calling PetscTableCreateHashSize() with<br>
this big size?<br></blockquote><div><br></div><div>call trace:<br><br>[4]PETSC ERROR: #3 MatSetUpMultiply_MPIAIJ() line 36 in /home/schuseba/projects/64_bit_builds/petsc/src/mat/impls/aij/mpi/mmaij.c<br><br>[9]PETSC ERROR: #4 MatAssemblyEnd_MPIAIJ() line 747 in /home/schuseba/projects/64_bit_builds/petsc/src/mat/impls/aij/mpi/mpiaij.c<br><br>[9]PETSC ERROR: #4 MatAssemblyEnd_MPIAIJ() line 747 in /home/schuseba/projects/64_bit_builds/petsc/src/mat/impls/aij/mpi/mpiaij.c<br></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
Satish<br>
<br>
-------<br>
$ git diff<br>
diff --git a/src/sys/utils/ctable.c b/src/sys/utils/ctable.c<br>
index cd64284..761a2c6 100644<br>
--- a/src/sys/utils/ctable.c<br>
+++ b/src/sys/utils/ctable.c<br>
@@ -25,6 +25,7 @@ static PetscErrorCode PetscTableCreateHashSize(<wbr>PetscInt sz, PetscInt *hsz)<br>
   else if (sz < 819200)  *hsz = 1193557;<br>
   else if (sz < 1638400) *hsz = 2297059;<br>
   else if (sz < 3276800) *hsz = 4902383;<br>
+  else if (sz < 6553600) *hsz = 9179113;<br>
   else SETERRQ1(PETSC_COMM_SELF,<wbr>PETSC_ERR_ARG_OUTOFRANGE,"A really huge hash is being requested.. cannot process: %D",sz);<br>
   PetscFunctionReturn(0);<br>
<span class="gmail-"> }<br>
<br>
On Mon, 9 Jan 2017, Kong, Fande wrote:<br>
<br>
> Hi All,<br>
><br>
> Hash size is set manually according to the number of expected keys in the<br>
> function PetscTableCreateHashSize(). Any reason to restrict the<br>
> ``n"<3276800?<br>
><br>
> One user here encountered an issue because of this restriction. The<br>
> messages are as follows:<br>
><br>
> [3]PETSC ERROR: --------------------- Error Message<br>
> ------------------------------<wbr>------------------------------<wbr>--<br>
><br>
> [3]PETSC ERROR: Argument out of range<br>
><br>
> [3]PETSC ERROR: A really huge hash is being requested.. cannot process:<br>
> 3497472<br>
><br>
</span>> [3]PETSC ERROR: See <a target="_blank" rel="noreferrer" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mcs.anl.gov_petsc_documentation_faq.html&d=DQIBAg&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=DUUt3SRGI0_JgtNaS3udV68GRkgV4ts7XKfj2opmiCY&m=fvlOBYaS6Bzg7U320hXOmDVca3d6OkyJnp56sjG6pG8&s=Rp5eqZDYZPxEHWb7SoQwATm41rJPVIolrCKuUGdM72U&e=">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.mcs.<wbr>anl.gov_petsc_documentation_<wbr>faq.html&d=DQIBAg&c=<wbr>54IZrppPQZKX9mLzcGdPfFD1hxrcB_<wbr>_aEkJFOKJFd00&r=DUUt3SRGI0_<wbr>JgtNaS3udV68GRkgV4ts7XKfj2opmi<wbr>CY&m=<wbr>fvlOBYaS6Bzg7U320hXOmDVca3d6Ok<wbr>yJnp56sjG6pG8&s=<wbr>Rp5eqZDYZPxEHWb7SoQwATm41rJPVI<wbr>olrCKuUGdM72U&e=</a>  for<br>
<div class="gmail-HOEnZb"><div class="gmail-h5">> trouble shooting.<br>
><br>
> [3]PETSC ERROR: Petsc Release Version 3.7.4, unknown<br>
><br>
> [3]PETSC ERROR: /home/schuseba/projects/64_<wbr>bit_builds/yak/yak-opt on a<br>
> linux-gnu-c-opt named r3i3n0 by schuseba Fri Jan  6 23:15:37 2017<br>
><br>
> [3]PETSC ERROR: Configure options --download-hypre=1 --with-ssl=0<br>
> --with-debugging=no --with-pic=1 --with-shared-libraries=1<br>
> --with-64-bit-indices=1 --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90<br>
> --download-metis=1 --download-parmetis=1 --download-fblaslapack=1<br>
> --download-superlu_dist=1 -CC=mpicc -CXX=mpicxx -FC=mpif90 -F77=mpif77<br>
> -F90=mpif90 -CFLAGS="-fPIC -fopenmp" -CXXFLAGS="-fPIC -fopenmp"<br>
> -FFLAGS="-fPIC -fopenmp" -FCFLAGS="-fPIC -fopenmp" -F90FLAGS="-fPIC<br>
> -fopenmp" -F77FLAGS="-fPIC -fopenmp"<br>
><br>
> [3]PETSC ERROR: #1 PetscTableCreateHashSize() line 28 in<br>
> /home/schuseba/projects/64_<wbr>bit_builds/petsc/src/sys/<wbr>utils/ctable.c<br>
><br>
><br>
><br>
><br>
><br>
> Fande,<br>
><br>
<br>
</div></div></blockquote></div><br></div></div>