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$
|
2015-06-23 20:59:57 -07:00
|
|
|
*
|
2013-09-10 15:34:09 +00:00
|
|
|
* Additional copyrights may follow
|
2015-06-23 20:59:57 -07:00
|
|
|
*
|
2013-09-10 15:34:09 +00:00
|
|
|
* $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"
|
|
|
|
|
2014-04-23 18:56:37 +00:00
|
|
|
#if OSHMEM_PROFILING
|
|
|
|
#include "oshmem/shmem/fortran/profile/pbindings.h"
|
2015-11-17 14:49:28 +02:00
|
|
|
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_INIT, shmem_init)
|
2014-04-23 18:56:37 +00:00
|
|
|
SHMEM_GENERATE_WEAK_BINDINGS(START_PES, start_pes)
|
|
|
|
#include "oshmem/shmem/fortran/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2015-11-17 14:49:28 +02:00
|
|
|
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
|
|
|
|
SHMEM_INIT,
|
|
|
|
shmem_init_,
|
|
|
|
shmem_init__,
|
|
|
|
shmem_init_f,
|
|
|
|
(void),
|
|
|
|
() )
|
|
|
|
|
|
|
|
void shmem_init_f(void)
|
|
|
|
{
|
|
|
|
shmem_init();
|
|
|
|
}
|
|
|
|
|
2013-09-17 16:39:56 +00:00
|
|
|
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
|
2013-09-10 15:34:09 +00:00
|
|
|
START_PES,
|
|
|
|
start_pes_,
|
|
|
|
start_pes__,
|
|
|
|
start_pes_f,
|
2015-06-23 20:59:57 -07:00
|
|
|
(MPI_Fint npes),
|
2013-09-10 15:34:09 +00:00
|
|
|
(npes) )
|
|
|
|
|
|
|
|
void start_pes_f(MPI_Fint npes)
|
|
|
|
{
|
|
|
|
shmem_init();
|
|
|
|
}
|