Re: [Myrinet] register & dma
"TOUCHE Julien" <[email protected]>
| Newsgroups | gmane.network.myrinet.general |
|---|---|
| Organization | Lycos Mail (http://www.mail.lycos.com:80) |
| Message-ID | <[email protected]> |
On Thu, 06 Jun 2002 16:03:38
Patrick Geoffray wrote:
>Julien,
>
>TOUCHE Julien wrote:
>>>What do you try to cast, the length field of gm_register_memory
>
>> yes, with or without a cast, gcc can't compile it ...
>
>Can you send me a small piece of code ? Which gcc are you using ?
>
for gcc, it's a redhat 7.1 so, if i remind me well, it's 2.96.
message = gm_register_memory(port,
&message,
(unsigned int)(size_mem*sizeof(char))
); // DMA transfer register
>> and how could i get this adress or is it only the remote adress of
>> the buffer in the allocation (&message in general) ?
>
>Yes, if this is the pointer to the buffer where you want to write. For
>example, if you want to write to a int called foo, this will be &foo.
>(with a cast to (gm_remote_ptr_t) before to pass it to gm_directed_send).
>
ok
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) ?
>Patrick
>
>PS: Julien Touche is very French, do you speak French ?
oui :)
---
Thanks
bye
Julien Touche
_______________________________________________________
WIN a first class trip to Hawaii. Live like the King of Rock and Roll
on the big Island. Enter Now!
http://r.lycos.com/r/sagel_mail/http://www.elvis.lycos.com/sweepstakes