2013-10-25 05:25:41 +00:00
|
|
|
/*
|
2014-04-19 05:03:44 +00:00
|
|
|
* Copyright (c) 2014 Mellanox Technologies, Inc.
|
2013-10-25 05:25:41 +00:00
|
|
|
* All rights reserved.
|
2015-05-04 07:47:53 -07:00
|
|
|
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
2013-10-25 05:25:41 +00:00
|
|
|
* $COPYRIGHT$
|
2015-05-04 07:47:53 -07:00
|
|
|
*
|
2013-10-25 05:25:41 +00:00
|
|
|
* Additional copyrights may follow
|
2015-05-04 07:47:53 -07:00
|
|
|
*
|
2013-10-25 05:25:41 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "shmem.h"
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
|
|
|
int proc, nproc;
|
2014-02-27 14:02:30 +00:00
|
|
|
|
2013-10-25 05:25:41 +00:00
|
|
|
start_pes(0);
|
|
|
|
nproc = _num_pes();
|
|
|
|
proc = _my_pe();
|
|
|
|
|
2015-05-04 07:47:53 -07:00
|
|
|
printf("Hello, world, I am %d of %d\n",
|
2013-10-25 05:25:41 +00:00
|
|
|
proc, nproc);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|