next up previous print clean
Next: Collection Up: MPI with SEPlib files Previous: Initializers/Destructors

Distribution

All of the values are in terms of 4 byte words and assume that the file has been moved (sseek) to the correct position. Each function returns an integer, 0 if successful.
mpi_sep_tag_bcast(int i_from,char *t_from, int i, char *t_to, int bs, int nb)
- This routine makes local copies of a given tag.
i_from
- The master node containing the file.
t_from
- The tag of the sepfile on the master node.
i
- The thread number of the calling process.
t_to
- The tag for the local version of the file.
nb,bs
- The size of the file nb*bs. Broken into parts to allow larger than 2GB.
mpi_sep_tag_distribute(int i_from,char *t_from, int i, char *t_to, int bs, int nb, int *s_to)
- Distribute a tag to the various nodes.
i_from
- The master node containing the file.
t_from
- The tag of the sepfile on the master node.
i
- The thread number of the calling process.
t_to
- The tag for the local version of the file.
bs
- The blocksize of the various dataset portions.
nb
- The number of blocks in the dataset.
s_to
- An array of size nb telling what node should have each portion of the dataset.

next up previous print clean
Next: Collection Up: MPI with SEPlib files Previous: Initializers/Destructors
Stanford Exploration Project
7/8/2003