Re: [Myrinet] register & dma

Patrick Geoffray <[email protected]>
Newsgroups gmane.network.myrinet.general
Organization Myricom, Inc
Message-ID <[email protected]>
TOUCHE Julien wrote:

> 	message = gm_register_memory(port, 
> 				&message,
> 				(unsigned int)(size_mem*sizeof(char))
> 				);	// DMA transfer register
> 

The cast on the length field is fine, the assignement of the ouput of 
gm_register_memory (gm_status_t) to "message" is the problem. The status 
should be GM_SUCCESS if the call succeeds.

> One other question, for gm i need two programs (one send, one receive)
> to communicate (not like mpi where i can also call them with mpirun) ?

This is a spawning issue, not a GM issue. You can have one unique code 
for both sides, no problem. However, there is no ID like the MPI ID to 
let you know who you are. When you start a such unique code, you may 
need to differentiate them via a flag or an evironment variable.

Patrick


----------------------------------------------------------
|   Patrick Geoffray, Ph.D.      [email protected]
|   Myricom, Inc.                http://www.myri.com
|   Cell:  865-389-8852          685 Emory Valley Rd (B)
|   Phone: 865-425-0978          Oak Ridge, TN 37830
----------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.