This source file includes following definitions.
- shmem_pe_accessible
1
2
3
4
5
6
7
8
9
10
11
12
13 #include "oshmem_config.h"
14
15 #include <stdlib.h>
16
17 #include "oshmem/constants.h"
18 #include "oshmem/include/shmem.h"
19
20 #include "oshmem/runtime/runtime.h"
21
22 #if OSHMEM_PROFILING
23 #include "oshmem/include/pshmem.h"
24 #pragma weak shmem_pe_accessible = pshmem_pe_accessible
25 #include "oshmem/shmem/c/profile/defines.h"
26 #endif
27
28 int shmem_pe_accessible(int pe)
29 {
30 RUNTIME_CHECK_INIT();
31
32
33 return 0 <= pe && pe < _num_pes() ? 1 : 0;
34 }
35