1
1
openmpi/examples/hello_oshmem_c.c
Mike Dubman daaf1d441d OSHMEM: added bunch of examples according to SPEC 1.0
fixed by Roman, reviewed by Igor/Mike

cmr=v1.8.2:reviewer=ompi-rm1.8

This commit was SVN r31449.
2014-04-19 05:03:44 +00:00

27 строки
429 B
C

/*
* Copyright (c) 2014 Mellanox Technologies, Inc.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include <stdio.h>
#include "shmem.h"
int main(int argc, char* argv[])
{
int proc, nproc;
start_pes(0);
nproc = _num_pes();
proc = _my_pe();
printf("Hello, world, I am %d of %d\n",
proc, nproc);
return 0;
}