Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > c40f6e5d921a213f89e1493bacd7e337 > files > 123

libopenmpi-devel-4.0.1-1.1.mga7.armv7hl.rpm

/*
 * Copyright (c) 2014-2016 Mellanox Technologies, Inc.
 *                         All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 *
 * This sample allocates (shmalloc) symmetric memory (1 long integer),
 * and then frees it. Success of allocation is not checked.
 *
 * Produces no output.
 */

#include <shmem.h>

int main(void)
{
    long *x;

    shmem_init();

    x = (long *) shmem_malloc(sizeof(*x));

    shmem_free(x);

    shmem_finalize();
}