root/oshmem/shmem/c/shmem_query.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. _num_pes
  2. _my_pe
  3. shmem_n_pes
  4. num_pes
  5. shmem_my_pe
  6. my_pe
  7. shmem_query_thread

   1 /*
   2  * Copyright (c) 2013-2015 Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  */
  10 #include "oshmem_config.h"
  11 
  12 #include "oshmem/constants.h"
  13 #include "oshmem/include/shmem.h"
  14 
  15 #include "oshmem/runtime/runtime.h"
  16 
  17 #include "oshmem/proc/proc.h"
  18 
  19 #if OSHMEM_PROFILING
  20 #include "oshmem/include/pshmem.h"
  21 #pragma weak shmem_n_pes = pshmem_n_pes
  22 #pragma weak shmem_my_pe = pshmem_my_pe
  23 #pragma weak shmem_query_thread = pshmem_query_thread
  24 #pragma weak _num_pes = p_num_pes
  25 #pragma weak _my_pe = p_my_pe
  26 #include "oshmem/shmem/c/profile/defines.h"
  27 #endif
  28 
  29 int _num_pes(void)
  30 {
  31     RUNTIME_CHECK_INIT();
  32     return oshmem_num_procs();
  33 }
  34 
  35 int _my_pe(void)
  36 {
  37     RUNTIME_CHECK_INIT();
  38     return oshmem_my_proc_id();
  39 }
  40 
  41 int shmem_n_pes(void)
  42 {
  43     RUNTIME_CHECK_INIT();
  44     return oshmem_num_procs();
  45 }
  46 
  47 int num_pes(void)
  48 {
  49     RUNTIME_CHECK_INIT();
  50     return oshmem_num_procs();
  51 }
  52 
  53 int shmem_my_pe(void)
  54 {
  55     RUNTIME_CHECK_INIT();
  56     return oshmem_my_proc_id();
  57 }
  58 
  59 int my_pe(void)
  60 {
  61     RUNTIME_CHECK_INIT();
  62     return oshmem_my_proc_id();
  63 }
  64 void shmem_query_thread(int *provided)
  65 {
  66     RUNTIME_CHECK_INIT();
  67     (*provided) = oshmem_mpi_thread_provided;
  68 }

/* [<][>][^][v][top][bottom][index][help] */