1
1
openmpi/examples/hello_oshmem_c.c
Mike Dubman 04b134eace 1. Default target (e.g. 'make all') now build all avaliable examples depends on configuration.
2. Oshmem examples moved to 'mpi' build target.
3. Oshmem examples renamed as 'shmem' => 'oshmem'.
4. Fixed warnings in oshmem_info.


Refs: 3763

This commit was SVN r29663.
2013-11-12 13:02:07 +00:00

27 строки
433 B
C

/*
* Copyright (c) 2013 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;
}