Initializing SSGΒΆ

The following code sample shows how to initialize and finalize SSG. Though SSG uses Margo for communications, it does not rely on it at initialization time.

main.c (show/hide)
#include <assert.h>
#include <stdio.h>
#include <ssg.h>

int main(int argc, char** argv)
{
    int ret = ssg_init();
    assert(ret == SSG_SUCCESS);

    ret = ssg_finalize();
    assert(ret == SSG_SUCCESS);

    return 0;
}