perun.coordination ================== .. py:module:: perun.coordination .. autoapi-nested-parse:: Coordination module. Attributes ---------- .. autoapisummary:: perun.coordination.log Functions --------- .. autoapisummary:: perun.coordination.getHostRankDict perun.coordination.assignSensors Module Contents --------------- .. py:data:: log .. py:function:: getHostRankDict(comm: perun.comm.Comm, hostname: str) -> Dict[str, List[int]] Return a dictionary with all the host names with each MPI rank in them. :param comm: MPI Communicator :type comm: Comm :param hostname: Local rank Hostname :type hostname: str :returns: Global host and mpi ranks dictionary. :rtype: Dict[str, List[int]] .. py:function:: assignSensors(host_rank_dict: Dict[str, List[int]], g_available_sensors: List[Dict[str, Tuple]]) -> List[Dict[str, Tuple]] Assings each mpi rank a sensor based on available backends and Host to rank mapping. :param host_rank_dict: Host to rank mapping. :type host_rank_dict: Dict[str, List[int]] :param g_available_sensors: List of available sensors for each backend for each rank. :type g_available_sensors: List[Dict[str, Tuple]] :returns: List with apointed backend and sensors for each MPI rank. :rtype: List[Dict[str, Tuple]]