Skip to content

Commit 3dfdf91

Browse files
committed
examples: rdm_rma example to show remote memory access
example showing remote memory access with rdm endpoint with write and read apis. Signed-off-by: Rajalaxmi Angadi <[email protected]>
1 parent 17a74f0 commit 3dfdf91

File tree

3 files changed

+758
-1
lines changed

3 files changed

+758
-1
lines changed

examples/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CFLAGS = -g -O0 $(INCLUDES) $(LIBS)
55
LDFLAGS = -lfabric
66
EXEC_PREFIX = fi_example_
77

8-
PROGRAMS = rdm msg rdm_tagged
8+
PROGRAMS = rdm msg rdm_tagged rdm_rma
99

1010
EXECUTABLES = $(addprefix $(EXEC_PREFIX), $(PROGRAMS))
1111

examples/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,17 @@ FI_PROVIDER=<prov> ./fi_example_rdm_tagged
6464
```bash
6565
FI_PROVIDER=<prov> ./fi_example_rdm_tagged <server_addr>
6666
```
67+
### fi_example_rdm_rma (rdm_rma.c)
68+
69+
This example uses `FI_EP_RDM` (reliable, unconnected) with a simple server and
70+
client to showcase remote memory access.
71+
72+
#### Server
73+
```bash
74+
FI_PROVIDER=<prov> ./fi_example_rdm_rma
75+
```
76+
77+
#### Client
78+
```bash
79+
FI_PROVIDER=<prov> ./fi_example_rdm_rma <server_addr>
80+
```

0 commit comments

Comments
 (0)