#746: new flesh APIs -------------------------+-------------------------------------------------- Reporter: jtao | Owner: Type: enhancement | Status: new Priority: major | Milestone: Cactus_4.1.0 Component: Cactus | Version: development version Keywords: | -------------------------+-------------------------------------------------- To support parallel programming on heterogeneous systems, it will be convenient to have the following APIs provided via flesh. These APIs will be helpful for properly handling the matching between devices (e.g. GPUs) and MPI processes.
// return a unique id for the local host; int CCTK_MyHost(cGH *cctkGH);
// return total number of nodes; int CCTK_nHosts(cGH *cctkGH);
// return number of mpi processes on a given host int CCTK_nProcsOnHost(const int host);
// return a list of process on a given host void CCTK_ProcsOnHost(const int host, int *procs);
Regards, Jian