[petsc-dev] testing code which use partitioners

Jed Brown jed at jedbrown.org
Sun Jan 6 22:49:32 CST 2019


METIS will use its internal implementation if USE_GKRAND is defined.
Maybe other partitioners have similar functionality.

I'm not wild about the complexity of providing our own definitions.
Note that libmetis.so does not link to libpetsc.so so it would be
nontrivial to make that work with both shared and static libraries.

"Smith, Barry F. via petsc-dev" <petsc-dev at mcs.anl.gov> writes:

>    It really irks me that we can't use the various partitioners in our nightly tests because they use rand() and produce different results on 
> different machines.
>
>    Here is what I propose
>
> 1) add ./configure flag --with-petsc-rand
>
> 2) if the flag is set then provide our own rand() and srand() (by crudely wrapping PetscRandom()) in pinit.c which is compiled if the flag is set
>
> 3) add the --with-petsc-rand to all the nightlybuilds
>
>   Problems with this plan?
>
>     Barry


More information about the petsc-dev mailing list