PPL Logo

util/XT3Torus.h File Reference

Author: Abhinav S Bhatele Date created: March 19th, 2007. More...

Go to the source code of this file.

Data Structures

struct  loc
class  XT3TorusManager

Functions

int 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
int getMeshCoord (int nid, int *x, int *y, int *z)
 getMeshCoord wrapper function for rca_get_meshcoord 0: success, -1: failure
void getDimension (int *, int *, int *, int *)

Variables

intpid2nid


Detailed Description

Author: Abhinav S Bhatele Date created: March 19th, 2007.

This file makes use of a static table we obtain from a file available on Bigben. Bigben does a XYZT mapping by default. Two steps to obtaining pid2coords and coords2pid are:

1. Get the nid for each pid using the nidpid_map call (also store this information as pid's (two) corresponding to a given nid 2. For each nid in the CrayNeighborTablefile, get the coordinates and assign the corresponding pids in the nid2pid data structure with these coordinates ('t' coord as 0 and 1)

Definition in file XT3Torus.h.


Function Documentation

int 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.

int getMeshCoord ( int  nid,
int x,
int y,
int z 
)

getMeshCoord wrapper function for rca_get_meshcoord 0: success, -1: failure

Definition at line 106 of file CrayNid.c.

void getDimension ( int ,
int ,
int ,
int  
)


Variable Documentation

Definition at line 34 of file XT3Torus.h.


Generated on Tue May 22 07:44:31 2012 for Charm++ by  doxygen 1.5.5