class NodeInfo

This holds a collection of information mostly related to the capabilities of the various nodes the program is running on, used for load balancing, program control, etc.

Public Fields

[more]char* Server
If this NCS simulation communicates with a central server, this is the hostname
[more]int Port
The control port of the central server if this NCS simulation has contact to one
[more]int Node
MPI rank in the parallel job
[more]int nNodes
Number of nodes in the job
[more]int IONode
Node that handles I/O for all the nodes
[more]int pid
The process id for this node
[more]int CellCount
Total number of cells in the brain (not just this node)
[more]int SynapseCount
Total number of synapses in the brain (not just this node)
[more]double TotalBmips
Total compute power of all the nodes
[more]char* buffer
Name of each node (value of host on node)
[more]char** names
Name of each node (value of host on node)
[more]int* pids
Process id from each node
[more]int* nClusters
Number of clusters on each node
[more]int* nCells
Number of cells on each node
[more]int* firstCell
Index into GCList, etc of first cell on node
[more]int* nSynapses
Number of Synapses (receiving side) on each node
[more]double* Bmips
Compute power of each node
[more]double* weight
Share of weight that should be assigned to each node
[more]double* Aweight
Actual weight assigned to each node after distribution
[more]int nSend
Number of nodes that this node send messages to
[more]int nRecv
Number of nodes that this node receives messages from
[more]int* Send
The number of synapses sending to each node
[more]int* Recv
The number of synapses receiving from each node
[more]int MaxSynDelay
The maximum synaptic delay on this node
[more]char* host
Name of this node
[more]char* cwd
Working directory - aquired from command-line arguments
[more]char* job
Job name, taken from input
[more]int FSV
Frequency, ticks per second
[more]ARRAYS* AR
Pointer to initial objects created after parsing input file
[more]char* input
Pointer to input file name (one of argv)
[more]int nSleep
For debug use
[more]double tstart
Time the program was started (from MPI_Wtime)
[more]bool check
if true, run distribution check only
[more]bool ConnectRpt
if true, print report of connections
[more]bool SpikeRpt
if true, print report of spikes, mem usage, &c at end of each timestep

Public Methods

[more] NodeInfo(int, int, int, char* [])
Constructor.
[more]int Save( FILE* out )
Save important information to a savefile.
[more]void Load( FILE* in )
Aquire important data from a file.


Documentation

This holds a collection of information mostly related to the capabilities of the various nodes the program is running on, used for load balancing, program control, etc. Since some of this needs to be available to almost every routine, various other things that have no obvious home have been put in here too.
ochar* Server
If this NCS simulation communicates with a central server, this is the hostname

oint Port
The control port of the central server if this NCS simulation has contact to one

oint Node
MPI rank in the parallel job

oint nNodes
Number of nodes in the job

oint IONode
Node that handles I/O for all the nodes

oint pid
The process id for this node

oint CellCount
Total number of cells in the brain (not just this node)

oint SynapseCount
Total number of synapses in the brain (not just this node)

odouble TotalBmips
Total compute power of all the nodes

ochar* buffer
Name of each node (value of host on node)

ochar** names
Name of each node (value of host on node)

oint* pids
Process id from each node

oint* nClusters
Number of clusters on each node

oint* nCells
Number of cells on each node

oint* firstCell
Index into GCList, etc of first cell on node

oint* nSynapses
Number of Synapses (receiving side) on each node

odouble* Bmips
Compute power of each node

odouble* weight
Share of weight that should be assigned to each node

odouble* Aweight
Actual weight assigned to each node after distribution

oint nSend
Number of nodes that this node send messages to

oint nRecv
Number of nodes that this node receives messages from

oint* Send
The number of synapses sending to each node

oint* Recv
The number of synapses receiving from each node

oint MaxSynDelay
The maximum synaptic delay on this node

ochar* host
Name of this node

ochar* cwd
Working directory - aquired from command-line arguments

ochar* job
Job name, taken from input

oint FSV
Frequency, ticks per second

oARRAYS* AR
Pointer to initial objects created after parsing input file

ochar* input
Pointer to input file name (one of argv)

oint nSleep
For debug use

odouble tstart
Time the program was started (from MPI_Wtime)

obool check
if true, run distribution check only

obool ConnectRpt
if true, print report of connections

obool SpikeRpt
if true, print report of spikes, mem usage, &c at end of each timestep

o NodeInfo(int, int, int, char* [])
Constructor. Parses arguments and allocates memory

oint Save( FILE* out )
Save important information to a savefile. This data is node specific, so each Node must save its own copy
Parameters:
out - File Pointer to write data to
Returns:
number of bytes written

ovoid Load( FILE* in )
Aquire important data from a file. Not all data was saved, since new data will be filled in when a new run is started.
Parameters:
in - File Pointer to obtain data from


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.