#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):
Getting lost even more in the weeds.
Actually MPI_Get_processor_name() on rank 0 together with the pid on rank 0 should be enough to give a unique name for the shared memory section. MPI_Get_processor_name() identifies the host (and if it is overly specific as on BG I don't mind since I just need a unique name that identifies the machine) plus the pid which is unique on the machine. All of this only as a fallback if the MPI3 stuff is not available.
Since MPI_Get_processor_name has a fixed size, Bcasting its result (+ pid) is much simpler than the concatenation of all gethostname results.