Charades
|
Concrete implementation of a basic block mapping to be used as a default. More...
#include <mapper.h>
Private Member Functions | |
uint64_t | get_chare_id (uint64_t global_id) const |
The chare id where gid is located is gid / g_lps_per_chare. | |
uint64_t | get_local_id (uint64_t global_id) const |
The local offset of gid is gid % g_lps_per_chare. | |
uint64_t | get_global_id (uint64_t chare_id, uint64_t local_id) const |
The global id for (chare_id ,\ p local_id) is g_lps_per_chare * chare_id + local_id . | |
uint64_t | get_num_lps (uint64_t chare_id) const |
The number of lps on all chares is g_lps_per_chare. | |
Additional Inherited Members |
Concrete implementation of a basic block mapping to be used as a default.
Maps g_lps_per_chare lps to each chare in contiguous blocks of global ids.