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