next up previous print clean
Next: Automatic Parallelization Up: MPI with SEPlib files Previous: Distribution

Collection

All of the values are in terms of 4 byte words and assume that the file has been positioned (sseek) to the correct position. Each function returns an integer, value 0, if successful.
mpi_sep_tag_sum(int i_from,char *t_from, int i_to, char *t_to, int bs, int nb, int add)
- Sum the results of the various local versions into one file.
i_from
- The local thread number.
t_from
- The local tag name.
i_to
- The thread where the image will be collected.
t_to
- The tag for the global file.
bs,nb
- The size of the file to combine nb*bs.
add
- Whether (1) or not (0) to add the result to its current contents of the output tag.
mpi_sep_tag_combine(int i_from,char *t_from, int i_to, char *t_to, int bs, int nb, int *s_from,int add)
- Combine the local files into a single file.
i_from
- The local thread number.
t_from
- The local tag name.
i_to
- The thread where the image will be collected.
t_to
- The tag for the global file.
bs
- The size of the blocks to combine.
nb
- The number of blocks.
s_from
- An array of size nb listing which process has component of the global file.
add
- Whether (1) or not (0) to add the result to its current values.
Appendix A contains a simple program illustrating how to use the library.


next up previous print clean
Next: Automatic Parallelization Up: MPI with SEPlib files Previous: Distribution
Stanford Exploration Project
7/8/2003