Should PetscObjectName be collective?

Barry Smith bsmith at mcs.anl.gov
Mon Nov 16 12:04:39 CST 2009


   Ok, we could just put the "counter" into the MPI attribute and then  
just have uniqueness of the names within each communicator.  This  
would solve Jed's problem cleanly.

     Barry

   We don't have any way of requiring the user to use Unique names  
anyways.


On Nov 16, 2009, at 11:17 AM, Jed Brown wrote:

> Barry Smith wrote:
>
>>   I do not know a way to generate unique MPI-comm-id's. Any thoughts?
>> Some feature of MPI I don't know?
>
> This seems very hard.  One could (the first time PETSc sees a
> communicator) hash the hostname+pid of every process on the
> communicator, start a counter on this hash, and set the communicator
> name to be the hash concatenated with this counter.  I think this is
> sufficient, but it's kinda nasty.
>
> Jed
>




More information about the petsc-dev mailing list