Trees | Indices | Help |
|
---|
|
The uni-processor class.
|
|||
|
|||
|
|||
|
|||
str |
|
||
str |
|
||
bool |
|
||
|
|||
Result_command instance |
|
||
|
|||
int |
|
||
int |
|
||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Initialise the class.
|
Add a command for remote execution to the queue - an abstract method.
|
Make sure that this is the master processor and not a slave. As this is the Uni-processor, the processor is always the master. Hence this method does nothing.
|
Return the string to append to the end of the relax introduction string.
|
Get the name of the current processor - an abstract method. The string should identify the current master or slave processor uniquely but is purely for information and debugging. For example the mpi implementation uses the string <host-name>-<process-id> whereas the thread implementation uses the id of the current thread as provided by python.
|
For the uni-processor fabric, we are always on the master.
|
Slave to master processor data transfer - send the result command from the slave. This mimics a slave to master data transfer initiated by a slave by holding the result command so that the matching self.master_receive_result(), which is called by the master processor, can return it. As the master and slave processors are one and the same, the command is just held as a private class variable.
|
Slave to master processor data transfer - receive the result command from the slave. This mimics a slave to master data transfer initiated by a slave by holding the result command so that the matching self.master_receive_result(), which is called by the master processor, can return it. As the master and slave processors are one and the same, the command is just held as a private class variable.
|
Dummy function for preventing the printing of the run time.
|
Return 1 as this is the uni-processor.
|
The uni-processor is always of rank 0.
|
Return a result to the master processor from a slave - an abstract method.
|
Run the processor queue - an abstract method. All commands queued with add_to_queue will be executed, this function causes the current thread to block until the command has completed.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 10 13:31:49 2013 | http://epydoc.sourceforge.net |