Skip to content

Commit

Permalink
fabtests/examples: Add libfabric examples
Browse files Browse the repository at this point in the history
Add examples to explain basic libfabric apis. Four examples
are added:

example_rdm.c:
Explain simple message exchange between server and client
using RDM endpoint.

example_rdm_oob.c:
This example explains simple meesage exchange with out of band
addressing capability.

example_rdm_rma.c:
Explain message exchange using remote memory access. Two
operations are explained here, remote write and remote read.
In local write operation, client is going to write data from
its local write buffer to the servers write buffer. In
remote read operation, the server is going to read data from
client’s read buffer into its own local read buffer.

example_rdm_tagged.c:
This example demonstrates how tagged messages work and
specifically how the messages are received in the same order
as they were sent.

Signed-off-by: Juee Himalbhai Desai <[email protected]>
  • Loading branch information
Juee14Desai committed Apr 20, 2023
1 parent 13138cf commit f640b99
Show file tree
Hide file tree
Showing 6 changed files with 2,749 additions and 5 deletions.
9 changes: 5 additions & 4 deletions contrib/intel/jenkins/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,12 @@ def __init__(self, jobname, buildno, testname, core_prov, fabric,
self.mpi_type = mpitype

@property
def execute_condn(self):
# def execute_condn(self):
# mpich-tcp, ompi are the only osu test combinations failing
return False if ((self.mpi_type == 'mpich' and self.core_prov == 'tcp') or \
self.mpi_type == 'ompi') \
else True
# return False if ((self.mpi_type == 'mpich' and self.core_prov == 'tcp') or \
# self.mpi_type == 'ompi') \
# else True
return True

def osu_cmd(self, test_type, test):
print(f"Running OSU-{test_type}-{test}")
Expand Down
18 changes: 17 additions & 1 deletion fabtests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ bin_PROGRAMS = \
multinode/fi_multinode_coll \
component/sock_test \
regression/sighandler_test \
common/check_hmem
common/check_hmem \
examples/example_rdm \
examples/example_rdm_oob \
examples/example_rdm_rma \
examples/example_rdm_tagged

if HAVE_ZE_DEVEL
if HAVE_VERBS_DEVEL
Expand Down Expand Up @@ -592,6 +596,18 @@ common_check_hmem_LDADD = libfabtests.la
common_checK_hmem_CFLAGS = \
$(AM_CFLAGS)

examples_example_rdm_SOURCES = \
examples/example_rdm.c

examples_example_rdm_rma_SOURCES = \
examples/example_rdm_rma.c

examples_example_rdm_tagged_SOURCES = \
examples/example_rdm_tagged.c

examples_example_rdm_oob_SOURCES = \
examples/example_rdm_oob.c

real_man_pages = \
man/man7/fabtests.7

Expand Down
Loading

0 comments on commit f640b99

Please sign in to comment.