-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
33 lines (22 loc) · 1.08 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This repository contains the Rust code to interface with OpenSHMEM.
The top-level "do-gen" script parses an OpenSMHEM header file and
generates dervied Rust equivalents. Note this is pretty raw output
and is not something that Rust programmers would want to see. The
do-gen output goes into the "shmemlib" irectory, which forms the
low-level unsafe interface to OpenSHMEM.
The "shmem" directoriy builds on shmemlib and implements Rust code
that hides all the unsafe operations that result from parsing the C.
Or at least, this is the idea, and where the work will be.
The other directories are example programs to explore how to actually
use OpenSHMEM with Rust and to see what the interface should look
like.
The examples are adapted mostly from the C programs in:
https://github.com/openshmem-org/openshmem-examples
Compilation Instructions
========================
To build a particular example, e.g.
$ cd hello
$ cargo build [--release]
How to run the example depends entirely on your environment. The
authors typically use SLURM with the PMIx plugin, or via
salloc/oshrun.