root/oshmem/include/shmem-compat.h

/* [<][>][^][v][top][bottom][index][help] */
   1 /* oshmem/include/shmem-compat.h. This file contains OpenSHMEM lagacy API  */
   2 /*
   3  * Copyright (c) 2014-2017 Mellanox Technologies, Inc.
   4  *                         All rights reserved.
   5  * $COPYRIGHT$
   6  *
   7  * Additional copyrights may follow
   8  *
   9  * $HEADER$
  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  * Legacy API
  21  * old init/destruct functions - not in the open shmem spec but still supported
  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 /* OSHMEM_SHMEM_COMPAT_H */

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