
Go to the source code of this file.
Functions | |
| int | getXTNodeID (int mpirank, int nummpiranks) |
| getXTNodeID returns nodeID corresponding to the MPI rank (possibly obtained from CmiMyNode()/CmiNodeOf(pe)) passed to it | |
| void | getDimension (int *maxnid, int *xdim, int *ydim, int *zdim) |
| int | getMeshCoord (int nid, int *x, int *y, int *z) |
| getMeshCoord wrapper function for rca_get_meshcoord 0: success, -1: failure | |
| void | pidtonid (int numpes) |
| pidtonid finds nids for pids 1 to CmiNumPes and stores them in an array correspondingly also creates an array for nids to pids | |
| void | craynid_init () |
Variables | |
| CmiNodeLock | cray_lock |
| CmiNodeLock | cray_lock2 |
| int * | pid2nid = NULL |
| int | maxX = -1 |
| int | maxY = -1 |
| int | maxZ = -1 |
| int | maxNID = -1 |
| rca_mesh_coord_t * | coords = NULL |
This file is needed because including the cnos_mpi_os.h in a C++ leads to a compiler error. Hence we have defined a wrapper function here which can be called from C++ files
Definition in file CrayNid.c.
getXTNodeID returns nodeID corresponding to the MPI rank (possibly obtained from CmiMyNode()/CmiNodeOf(pe)) passed to it
This scheme relies on using IP address to identify physical nodes written by Gengbin Zheng 9/2008.
Definition at line 28 of file CrayNid.c.
References free(), and malloc().
Referenced by CmiInitCPUAffinity(), and LrtsInitCpuTopo().
Definition at line 205 of file CrayNid.c.
References CmiLock(), CmiUnlock(), and getMeshCoord().
Referenced by pidtonid(), XT3TorusManager::XT3TorusManager(), and XTTorusManager::XTTorusManager().
getMeshCoord wrapper function for rca_get_meshcoord 0: success, -1: failure
Definition at line 106 of file CrayNid.c.
References CmiAbort(), and coords.
Referenced by getDimension(), XT3TorusManager::XT3TorusManager(), and XTTorusManager::XTTorusManager().
| void pidtonid | ( | int | numpes | ) |
pidtonid finds nids for pids 1 to CmiNumPes and stores them in an array correspondingly also creates an array for nids to pids
Definition at line 134 of file CrayNid.c.
References CmiLock(), CmiNodeOf(), CmiNumCores(), CmiUnlock(), coords, free(), getDimension(), and malloc().
Referenced by craynid_init(), and XT3TorusManager::XT3TorusManager().
| void craynid_init | ( | ) |
Definition at line 236 of file CrayNid.c.
References CmiCreateLock(), CmiMyRank(), and pidtonid().
Referenced by TopoManager_init().
Definition at line 92 of file CrayNid.c.
Referenced by XT3TorusManager::XT3TorusManager(), and XTTorusManager::XTTorusManager().
Definition at line 93 of file CrayNid.c.
Referenced by XT3TorusManager::XT3TorusManager(), and XTTorusManager::XTTorusManager().
Definition at line 94 of file CrayNid.c.
Referenced by XT3TorusManager::XT3TorusManager(), and XTTorusManager::XTTorusManager().
| rca_mesh_coord_t* coords = NULL |
Definition at line 97 of file CrayNid.c.
Referenced by AMPI_Cart_shift(), AMPI_Cart_sub(), Coordinate_Partition(), FEM_Adapt_Algs::FEM_mesh_smooth(), getMeshCoord(), MPI_Type_create_darray(), and pidtonid().
1.5.5