root/oshmem/proc/proc_group_cache.h

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

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. oshmem_group_cache_enabled

   1 /*
   2  * Copyright (c) 2013-2018 Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  */
  10 #ifndef _PROC_GROUP_CACHE_H
  11 #define _PROC_GROUP_CACHE_H
  12 
  13 #include "oshmem_config.h"
  14 #include "proc.h"
  15 
  16 #define OSHMEM_GROUP_CACHE_ENABLED 1
  17 
  18 BEGIN_C_DECLS
  19 
  20 /**
  21  * A group cache.
  22  *
  23  * Deletion of a group is not implemented because it
  24  * requires a synchronization between PEs
  25  *
  26  * If cache enabled every group is kept until the
  27  * shmem_finalize() is called
  28  */
  29 
  30 int oshmem_group_cache_init(void);
  31 void oshmem_group_cache_destroy(void);
  32 
  33 oshmem_group_t* oshmem_group_cache_find(int pe_start, int pe_stride, int pe_size);
  34 
  35 int oshmem_group_cache_insert(oshmem_group_t *group, int pe_start,
  36                               int pe_stride, int pe_size);
  37 
  38 static inline int oshmem_group_cache_enabled(void)
  39 {
  40     return OSHMEM_GROUP_CACHE_ENABLED;
  41 }
  42 
  43 END_C_DECLS
  44 
  45 #endif

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