- ompi/mca/mpool/rdma/mpool_rdma_module.c: At this level
without mpi.h we have no notion of MPI_SUCCESS... - ompi/mca/btl/sm/btl_sm.h: ptrdiff_t needs stddef.h - ompi/mca/mpool/base/: If we use opal_pointer_array_t, better include the class header. This commit was SVN r20816.
Этот коммит содержится в:
родитель
f5e6e001d7
Коммит
b9b84a9c29
@ -24,6 +24,7 @@
|
|||||||
#define MCA_BTL_SM_H
|
#define MCA_BTL_SM_H
|
||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "ompi/constants.h"
|
#include "ompi/constants.h"
|
||||||
|
#include "opal/class/opal_pointer_array.h"
|
||||||
#include "opal/mca/mca.h"
|
#include "opal/mca/mca.h"
|
||||||
#include "opal/mca/base/base.h"
|
#include "opal/mca/base/base.h"
|
||||||
#include "ompi/mca/mpool/mpool.h"
|
#include "ompi/mca/mpool/mpool.h"
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
* @file
|
* @file
|
||||||
*/
|
*/
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
|
||||||
|
#include "opal/class/opal_pointer_array.h"
|
||||||
#include "mpool_base_mem_cb.h"
|
#include "mpool_base_mem_cb.h"
|
||||||
#include "base.h"
|
#include "base.h"
|
||||||
#include "orte/types.h"
|
#include "orte/types.h"
|
||||||
|
@ -213,7 +213,7 @@ int mca_mpool_rdma_register(mca_mpool_base_module_t *mpool, void *addr,
|
|||||||
mpool_rdma->stat_cache_hit++;
|
mpool_rdma->stat_cache_hit++;
|
||||||
(*reg)->ref_count++;
|
(*reg)->ref_count++;
|
||||||
OPAL_THREAD_UNLOCK(&mpool->rcache->lock);
|
OPAL_THREAD_UNLOCK(&mpool->rcache->lock);
|
||||||
return MPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
mpool_rdma->stat_cache_miss++;
|
mpool_rdma->stat_cache_miss++;
|
||||||
@ -255,7 +255,7 @@ int mca_mpool_rdma_register(mca_mpool_base_module_t *mpool, void *addr,
|
|||||||
if(opal_list_get_end(&mpool_rdma->mru_list) !=
|
if(opal_list_get_end(&mpool_rdma->mru_list) !=
|
||||||
(opal_list_item_t*)old_reg) {
|
(opal_list_item_t*)old_reg) {
|
||||||
rc = dereg_mem(mpool, old_reg);
|
rc = dereg_mem(mpool, old_reg);
|
||||||
if(MPI_SUCCESS == rc) {
|
if(OMPI_SUCCESS == rc) {
|
||||||
mpool->rcache->rcache_delete(mpool->rcache, old_reg);
|
mpool->rcache->rcache_delete(mpool->rcache, old_reg);
|
||||||
opal_list_remove_item(&mpool_rdma->mru_list,
|
opal_list_remove_item(&mpool_rdma->mru_list,
|
||||||
(opal_list_item_t*)old_reg);
|
(opal_list_item_t*)old_reg);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user