Re: Using Socket -GM

Markus Fischer <[email protected]> Thu, 29 Jul 2004 13:26:34 +0200
Newsgroups gmane.network.myrinet.general
Message-ID <[email protected]>
Hi,

Manju wrote:

>Hi Markus,
>
>>From examples in the tests directory the examples start with 
>#ifdef AFINET
>#define AF_FAMILY AF_INET
>#else
>#define AF_FAMILY AF_BLUETOOTH
>#endif
>
>>From tests/simple/server.c
>socket(AF_FAMILY,SOCK_STREAM ....)
>
>>From sockets preload.c
>if (domain == AF_INET && type == SOCK_STREAM)
>                domain = AF_BLUETOOTH;
>
>sgm.h:#define AF_SGM_MYRINET AF_BLUETOOTH
>
>It seems from above snippets,  if my applications  should  use
>Socket-GM then my family in socket call should be  AF_BLUETOOTH 
>i.e,in my applications  to create socket(AF_BLUETOOTH, ......)  and
>ofcourse the with LD_PRELOAD set to libgmsocks.so.1.0. Please let me
>know if I am wrong ?
>  
>
You do not need to modify your application. Just set the LD_PRELOAD and 
an AF_INET will
be mapped to Myrinet. I am writing this one more time since I could not 
decipher your last
sentence.

>
>If  my above assumption is right then according to code in 
>sockets preload.c
>if (domain == AF_INET && type == SOCK_STREAM)
>                domain = AF_BLUETOOTH;
>
>I don't see how SOCK_DGRAM sockets for udp are supported. Please correct me
>If Iam missing something here.
>  
>
Right, right now the focus is on SOCK_STREAM applications. If there is 
need for SOCK_DGRAM
we can look into that as well.

Markus

>thanks for help,
>regards,
>-Manjunath
>
>
>
>On Wed, 28 Jul 2004 13:00:55 +0200, Markus Fischer <[email protected]> wrote:
>  
>
>>Hi Manjunath,
>>
>>you will be able to see debug messages in /var/log/messages if you have
>>the debug option enabled.
>>
>>Please note that the socket interface of Linux will be used, but Linux
>>will delegate it to the AF_MYRI socket address family.
>>
>>In order to use AF_MYRI you need to set an LD_PRELOAD for
>>the libgmsocks.so.1.0 file or specify AF_MYRI explicitely.
>>
>>Please have a look at the tests directory which includes examples for
>>AF_INET and AF_MYRI
>>
>>Please let me know if you have further questions,
>>Markus
>>
>>
>>
>>
>>Manju wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>I have Socket -GM compiled and installed. I am trying to verify my applications
>>>uses Socket-GM and not Socket interface of Linux kernel. In doing this I enable
>>>the debugging option(-DMODULE_DEBUG ) during compilation and when I
>>>run application to use Sockets-GM it doesn't print any kernel message.
>>>Can I conclude from this Socket-GM is not being used or Iam missing
>>>something here ?
>>>
>>>Environment
>>>OS : Linux (Kernel version 2.4.21)
>>>GM : gm-2.0.12
>>>Socket-GM -1.4
>>>
>>>any help is appreciated,
>>>
>>>Thanks,
>>>-Manjunath
>>>_______________________________________________
>>>Myrinet mailing list
>>>[email protected]
>>>http://email.osc.edu/mailman/listinfo/myrinet
>>>
>>>
>>>
>>>      
>>>
>>    
>>
>_______________________________________________
>Myrinet mailing list
>[email protected]
>http://email.osc.edu/mailman/listinfo/myrinet
>
>  
>