[libfabric-users] Simple libfabric Hello World Program
James Board
jpboard2 at yahoo.com
Wed Jul 24 13:16:19 PDT 2019
Thanks. I'm aware of fabtests. But, they contain thousands of lines of code and well over a hundred subroutines. It's difficult to follow the flow of control. I'm looking for a simple "Hello World" type of program: something that contains the minimal amount of code necessary to send RMA messages between nodes. It's easier for me to start with a simple example and make it do what I want versus starting with a complex example.
On Wednesday, July 24, 2019, 8:05:14 PM UTC, Hefty, Sean <sean.hefty at intel.com> wrote:
> I'm new to the libfabric world. I've been reading man pages and whatever online
> documentation I can find, but it's still unclear to me how to do the most basic things.
> Does anyone know of a simple "Hello World" program that sends RMA messages between two
> nodes?
You can look at the test apps, which are part of the same git repo:
https://github.com/ofiwg/libfabric/tree/master/fabtests
Look under fabtests/functional for dgram.c, msg.c, or rdm.c, depending on the endpoint type that you're wanting. Those will perform message transfers between nodes.
A more stand-alone program also ships with libfabric:
https://github.com/ofiwg/libfabric/blob/master/util/pingpong.c
That will send messages between nodes using either the 'msg' or 'tagged' interfaces. If you're wanting actual RMA transfers, rdm_rma_simple.c under fabtests/functional might be closest.
- Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/libfabric-users/attachments/20190724/a6fdd922/attachment.html>
More information about the Libfabric-users
mailing list