[libfabric-users] pingpong example

Rob Latham robl at mcs.anl.gov
Thu Feb 4 08:52:35 PST 2016


Jeff made this list at my request so I guess I'll break the ice.

It's been 15 years since I've thought about low-level network 
programming (thanks MPI!) so I'm probably doing something obviously dumb 
here:

I extracted the pingpong example out of the OFI SC 2015 tutorial (this 
one: http://www.slideshare.net/dgoodell/ofi-libfabric-tutorial?ref=) 
got it compiling, added error checking.  I've attached the program.

I'm just playing around on my laptop, so this is with sock.  If I give a 
different source and destination, it hangs:

-  ./pingpong -s localhost:12345 -z 1024 -i 10
-  ./pingpong -d localhost:54321 -z 1024 -i 10

but if I give it the same source and destination, it runs.

- ./pingpong -s localhost:12345 -z 1024 -i 10
- ./pingpong -d localhost:12345 -z 1024 -i 10

Why is pingpong confused when source and dest are different?  I thought 
the steps on slides 79-81 were where the client and server tell each 
other where to look ?

Thanks
==rob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pingpong.c
Type: text/x-csrc
Size: 7730 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/libfabric-users/attachments/20160204/8f13feee/attachment.c>


More information about the Libfabric-users mailing list