This is a sample program in Mochi-margo. This makes the following local function to a remote procedure call.
int
put(const char *key, const char *value)
{
printf("put: key %s, value %s\n", key, value);
return (0);
}$ mkdir build
$ cd build
$ spack load mochi-margo
$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/workspace ..
$ make
$ make installTarget programs; server and client, are installed in ~/workspace/bin, which is shared among containers. This directory is included in PATH environment variable by ~/.bashrc.
$ server
Server running at address na+sm://6564-0Specify the server address, key and value
$ client na+sm://6564-0 111 222