GADGET-4
shmem Class Reference

#include <shared_mem_handler.h>

Classes

struct  bookkeeping_data
 
struct  tree_storage_info
 

Public Member Functions

char * get_basenodep (int no, unsigned char shmrank, int handle)
 
int * get_nextnodep (unsigned char shmrank, int handle)
 
char * get_pointsp (unsigned char shmrank, int handle)
 
char * get_Pp (unsigned char shmrank, int handle)
 
char * get_SphPp (unsigned char shmrank, int handle)
 
void deal_with_gravity_node_request (char *message, int length, int source, int handle)
 
void deal_with_sph_node_request (char *message, int length, int source, int handle, simparticles *Sp)
 
void prepare_offset_table (void *p, ptrdiff_t *&offset_tab)
 
void inform_offset_table (void *p)
 
void free_offset_table (ptrdiff_t *&offset_tab)
 
void shared_memory_handler (void)
 

Public Attributes

MPI_Comm SharedMemComm
 
MPI_Comm SimulationComm
 
int World_ThisTask
 
int World_NTask
 
int Island_ThisTask
 
int Island_NTask
 
int Sim_ThisTask
 
int Sim_NTask
 
int GhostRank
 
int Island_Smallest_WorldTask
 
int * GetGhostRankForSimulCommRank
 
int * GetShmRankForSimulCommRank
 
int * GetNodeIDForSimulCommRank
 
int MyShmRankInGlobal
 
MPI_Win SharedMemWin
 
void ** SharedMemBaseAddr
 
char * TableData
 
char * EwaldData
 
tree_storage_info tree_info [MAX_TREE_INFOS]
 
int num_tree_info = 0
 

Detailed Description

Definition at line 27 of file shared_mem_handler.h.

Member Function Documentation

◆ deal_with_gravity_node_request()

void deal_with_gravity_node_request ( char *  message,
int  length,
int  source,
int  handle 
)

Definition at line 398 of file shared_mem_handler.cc.

◆ deal_with_sph_node_request()

void deal_with_sph_node_request ( char *  message,
int  length,
int  source,
int  handle,
simparticles Sp 
)

Definition at line 214 of file shared_mem_handler.cc.

◆ free_offset_table()

void free_offset_table ( ptrdiff_t *&  offset_tab)

Definition at line 44 of file shared_mem_handler.cc.

◆ get_basenodep()

char * get_basenodep ( int  no,
unsigned char  shmrank,
int  handle 
)
inline

Definition at line 106 of file shared_mem_handler.h.

◆ get_nextnodep()

int * get_nextnodep ( unsigned char  shmrank,
int  handle 
)
inline

Definition at line 114 of file shared_mem_handler.h.

◆ get_pointsp()

char * get_pointsp ( unsigned char  shmrank,
int  handle 
)
inline

Definition at line 119 of file shared_mem_handler.h.

◆ get_Pp()

char * get_Pp ( unsigned char  shmrank,
int  handle 
)
inline

Definition at line 124 of file shared_mem_handler.h.

◆ get_SphPp()

char * get_SphPp ( unsigned char  shmrank,
int  handle 
)
inline

Definition at line 129 of file shared_mem_handler.h.

◆ inform_offset_table()

void inform_offset_table ( void *  p)

Definition at line 37 of file shared_mem_handler.cc.

◆ prepare_offset_table()

void prepare_offset_table ( void *  p,
ptrdiff_t *&  offset_tab 
)

Definition at line 28 of file shared_mem_handler.cc.

◆ shared_memory_handler()

void shared_memory_handler ( void  )

Definition at line 46 of file shared_mem_handler.cc.

Member Data Documentation

◆ EwaldData

char* EwaldData

Definition at line 72 of file shared_mem_handler.h.

◆ GetGhostRankForSimulCommRank

int* GetGhostRankForSimulCommRank

Definition at line 49 of file shared_mem_handler.h.

◆ GetNodeIDForSimulCommRank

int* GetNodeIDForSimulCommRank

Definition at line 58 of file shared_mem_handler.h.

◆ GetShmRankForSimulCommRank

int* GetShmRankForSimulCommRank

Definition at line 53 of file shared_mem_handler.h.

◆ GhostRank

int GhostRank

Definition at line 42 of file shared_mem_handler.h.

◆ Island_NTask

int Island_NTask

Definition at line 37 of file shared_mem_handler.h.

◆ Island_Smallest_WorldTask

int Island_Smallest_WorldTask

Definition at line 44 of file shared_mem_handler.h.

◆ Island_ThisTask

int Island_ThisTask

Definition at line 36 of file shared_mem_handler.h.

◆ MyShmRankInGlobal

int MyShmRankInGlobal

Definition at line 61 of file shared_mem_handler.h.

◆ num_tree_info

int num_tree_info = 0

Definition at line 104 of file shared_mem_handler.h.

◆ SharedMemBaseAddr

void** SharedMemBaseAddr

Definition at line 65 of file shared_mem_handler.h.

◆ SharedMemComm

MPI_Comm SharedMemComm

Definition at line 30 of file shared_mem_handler.h.

◆ SharedMemWin

MPI_Win SharedMemWin

Definition at line 63 of file shared_mem_handler.h.

◆ Sim_NTask

int Sim_NTask

Definition at line 40 of file shared_mem_handler.h.

◆ Sim_ThisTask

int Sim_ThisTask

Definition at line 39 of file shared_mem_handler.h.

◆ SimulationComm

MPI_Comm SimulationComm

Definition at line 31 of file shared_mem_handler.h.

◆ TableData

char* TableData

Definition at line 71 of file shared_mem_handler.h.

◆ tree_info

Definition at line 103 of file shared_mem_handler.h.

◆ World_NTask

int World_NTask

Definition at line 34 of file shared_mem_handler.h.

◆ World_ThisTask

int World_ThisTask

Definition at line 33 of file shared_mem_handler.h.


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