22 #ifndef MCA_MEM_BASE_H
23 #define MCA_MEM_BASE_H
25 #include "ompi_config.h"
33 static inline unsigned int my_log2(
unsigned long val) {
34 unsigned int count = 0;
39 return count > 0 ? count-1: 0;
41 static inline void *down_align_addr(
void* addr,
unsigned int shift) {
42 return (
void*) (((intptr_t) addr) & (~(intptr_t) 0) << shift);
45 static inline void *up_align_addr(
void*addr,
unsigned int shift) {
46 return (
void*) ((((intptr_t) addr) | ~((~(intptr_t) 0) << shift)));
69 OMPI_DECLSPEC
int mca_mpool_base_init(
bool enable_progress_threads,
bool enable_mpi_threads);
70 OMPI_DECLSPEC
int mca_mpool_base_close(
void);
82 OMPI_DECLSPEC
extern int mca_mpool_base_output;
83 OMPI_DECLSPEC
extern opal_list_t mca_mpool_base_components;
85 OMPI_DECLSPEC
extern uint32_t mca_mpool_base_page_size;
86 OMPI_DECLSPEC
extern uint32_t mca_mpool_base_page_size_log;
89 extern int mca_mpool_base_used_mem_hooks;
OMPI_DECLSPEC int mca_mpool_base_open(void)
Function for finding and opening either all MCA components, or the one that was specifically requeste...
Definition: mpool_base_open.c:63
The opal_list_t interface is used to provide a generic doubly-linked list container for Open MPI...
mpool component descriptor.
Definition: mpool.h:154
Top-level interface for all MCA components.
Definition: opal_list.h:98
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(mca_oob_base_info_t)
declare the association structure as a class
OMPI_DECLSPEC int mca_mpool_base_init(bool enable_progress_threads, bool enable_mpi_threads)
Function for weeding out mpool modules that don't want to run.
Definition: mpool_base_init.c:37
Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana University Research and Techno...
Definition: opal_list.h:147
Definition: mpool_fake.h:38
mpool module descriptor.
Definition: mpool.h:174