1
2
3
4
5
6
7
8
9
10
11
12 #ifndef OSHMEM_SHMEM_COMPAT_H
13 #define OSHMEM_SHMEM_COMPAT_H
14
15 #if defined(c_plusplus) || defined(__cplusplus)
16 extern "C" {
17 #endif
18
19
20
21
22
23 OSHMEM_DECLSPEC int num_pes(void);
24 OSHMEM_DECLSPEC int my_pe(void);
25
26 OSHMEM_DECLSPEC void start_pes(int npes);
27
28 OSHMEM_DECLSPEC int _num_pes(void);
29 OSHMEM_DECLSPEC int _my_pe(void);
30
31 OSHMEM_DECLSPEC void* shmalloc(size_t size);
32 OSHMEM_DECLSPEC void* shmemalign(size_t align, size_t size);
33 OSHMEM_DECLSPEC void* shrealloc(void *ptr, size_t size);
34 OSHMEM_DECLSPEC void shfree(void* ptr);
35
36 OSHMEM_DECLSPEC void globalexit(int status);
37
38 #if defined(c_plusplus) || defined(__cplusplus)
39 }
40 #endif
41
42 #endif