1
1

- 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.
Этот коммит содержится в:
Rainer Keller 2009-03-17 20:21:36 +00:00
родитель f5e6e001d7
Коммит b9b84a9c29
4 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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);