Hi:
i made a program that send a File to other nodes on the cluster
1º: the master node read the size of file (file_size)
2º: i divide the file in equals parts (block_size)
3º: i generate N threads. one for each node
the fisrt thread read using read() from byte 0 to (block_size-1) and
send data to node 1 using MPI_Send()
the second thread read from byte (block_size-1) to (block_size*2)-1
and send data to node 2 using MPI_Send()
ETC.
4º finaly: the nodes use MPI_Recive to read data and write the file
its very simple way to do this
Saludos!
from me :)
p.d.: my english is very bad!! :(
>
> Hi,
>
> If I have a file (binary, tar and etc), how to use MPI_Send or MPI_Bcast
> to distribute this file?
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
|