Charades
Public Member Functions | List of all members
LPMapper Class Referenceabstract

Base class which defines the mapper interface used during simulation setup. More...

#include <mapper.h>

Inheritance diagram for LPMapper:
BlockMapper

Public Member Functions

virtual uint64_t get_chare_id (uint64_t global_id) const =0
 Maps a global LP id, gid, to a chare id.
 
virtual uint64_t get_local_id (uint64_t global_id) const =0
 Maps a global LP id, gid, to its local offset id within its chare.
 
virtual uint64_t get_global_id (uint64_t chare_id, uint64_t local_id) const =0
 Maps a chare id and offset within the chare to a global LP id. More...
 
virtual uint64_t get_num_lps (uint64_t chare_id) const =0
 Maps a chare id to the number of LPs that chare will have.
 

Detailed Description

Base class which defines the mapper interface used during simulation setup.

Member Function Documentation

◆ get_global_id()

virtual uint64_t LPMapper::get_global_id ( uint64_t  chare_id,
uint64_t  local_id 
) const
pure virtual

Maps a chare id and offset within the chare to a global LP id.

Note
This is the inverse of get_chare_id and get_local_id

Implemented in BlockMapper.


The documentation for this class was generated from the following file: