2013-09-10 15:34:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
|
|
* All rights reserved.
|
2013-09-15 09:32:07 +00:00
|
|
|
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
2013-09-10 15:34:09 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "oshmem_config.h"
|
2013-09-15 09:32:07 +00:00
|
|
|
#include "oshmem/shmem/fortran/bindings.h"
|
2013-09-10 15:34:09 +00:00
|
|
|
#include "oshmem/include/shmem.h"
|
|
|
|
|
2013-09-17 16:39:56 +00:00
|
|
|
SHMEM_GENERATE_FORTRAN_BINDINGS_FUNCTION (MPI_Fint,
|
2013-09-10 15:34:09 +00:00
|
|
|
NUM_PES,
|
|
|
|
num_pes_,
|
|
|
|
num_pes__,
|
|
|
|
num_pes_f,
|
2013-09-15 09:32:07 +00:00
|
|
|
(void),
|
2013-09-10 15:34:09 +00:00
|
|
|
() )
|
|
|
|
|
2013-09-15 09:32:07 +00:00
|
|
|
MPI_Fint num_pes_f(void)
|
2013-09-10 15:34:09 +00:00
|
|
|
{
|
|
|
|
MPI_Fint rc;
|
|
|
|
rc = OMPI_INT_2_FINT(num_pes());
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|