#2112: move CCTK_MyHost and friends into flesh --------------------------+------------------------------------------------- Reporter: rhaas | Owner: Type: enhancement | Status: new Priority: minor | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: Carpet PUGH driver --------------------------+-------------------------------------------------
Comment (by rhaas):
@ knarf: the problem with that is that all ranks on the node need to agree on the same process ID. I also cannot use the process ID of rank 0 and bcast that one, because (being devil's advocate) it could actually be 2 nodes which are shared among two simulations and one simulation has rank 0 on node A and the other has rank 0 on node B and those two just happen to have the same process ID.
@ eschett: that will almost always work :-)
A simpler thing, without the need for any mmap would be basically what you are already doing with the processor names but using the (32 bit numeric so much easier to work with) {{{gethostid()}}} result. This would avoid having to pass around strings through MPI. Again, no mmap needed.