Mcore_handler
- class nrv.backend.Mcore_handler(*args, **kwargs)[source]
Class to handle parallel processing (cores, no threads) in NRV2
Methods
|
Instantiation of Mcore |
Check if the process is alone or it is the master to perform non splitable job |
|
|
Gather the jobs performed by all instances to the master |
Gather the jobs performed by all instances to the master |
|
Check if the process is runing alone or if other instances have been launched. |
|
Check if the process is master or not whe parallel computing |
|
Broadcast an array to all instances of the process (share jobs performed by the master only) |
|
Broadcast an array to all instances of the process (share jobs performed by the master only) |
|
Recieve data from anay source |
|
Recieve potenatial data from the master as a numpy array |
|
Display a sentence from each process on prompt. |
|
|
Send a numpy array to a slave |
Send a dictionary of data directly to the master. |
|
Blocking collective communication to force all process to synchronize to a specific line of code |
|
|
Split an array for parallel independant computing, by sharing independant sub-spaces of array index |
Split an array for parallel independant computing, by sharing independant sub-spaces of array index, the master gets a table of all jobs to do initialized to False |
|
|
Gather, sum and broadcast array for conservative results. |