b3f88c4a1d
This commit was SVN r29153.
56 строки
918 B
C
56 строки
918 B
C
/*
|
|
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
#include "oshmem_config.h"
|
|
|
|
#include "oshmem/constants.h"
|
|
#include "oshmem/include/shmem.h"
|
|
|
|
#include "oshmem/runtime/runtime.h"
|
|
|
|
#include "oshmem/proc/proc.h"
|
|
|
|
int _num_pes(void)
|
|
{
|
|
RUNTIME_CHECK_INIT();
|
|
return oshmem_num_procs();
|
|
}
|
|
|
|
int _my_pe(void)
|
|
{
|
|
RUNTIME_CHECK_INIT();
|
|
return oshmem_my_proc_id();
|
|
}
|
|
|
|
#if !defined(OSHMEM_PROFILING) || (OSHMEM_PROFILING == 0)
|
|
int shmem_n_pes(void)
|
|
{
|
|
RUNTIME_CHECK_INIT();
|
|
return oshmem_num_procs();
|
|
}
|
|
|
|
int num_pes(void)
|
|
{
|
|
RUNTIME_CHECK_INIT();
|
|
return oshmem_num_procs();
|
|
}
|
|
|
|
int shmem_my_pe(void)
|
|
{
|
|
RUNTIME_CHECK_INIT();
|
|
return oshmem_my_proc_id();
|
|
}
|
|
|
|
int my_pe(void)
|
|
{
|
|
RUNTIME_CHECK_INIT();
|
|
return oshmem_my_proc_id();
|
|
}
|
|
#endif /* OSHMEM_PROFILING */
|