
This commit adds support for placing the send memory segment in a traditional shared memory segment when XPMEM is not available. The current default is to reserve 4MB for shared memory on each process. The latest benchmarks show vader performing better than sm on both Intel and AMD CPUs. For large messages vader will now use CMA if it is available (and XPMEM is not). cmr=v1.7.5:reviewer=jsquyres This commit was SVN r30123.
48 строки
1.3 KiB
C
48 строки
1.3 KiB
C
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
|
/*
|
|
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights
|
|
* reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#if !defined(MCA_BTL_VADER_XPMEM_H)
|
|
#define MCA_BTL_VADER_XPMEM_H
|
|
|
|
#include "btl_vader.h"
|
|
|
|
#if OMPI_BTL_VADER_HAVE_XPMEM
|
|
/* look up the remote pointer in the peer rcache and attach if
|
|
* necessary */
|
|
|
|
mca_mpool_base_registration_t *vader_get_registation (struct mca_btl_base_endpoint_t *endpoint, void *rem_ptr,
|
|
size_t size, int flags, void **local_ptr);
|
|
|
|
void vader_return_registration (mca_mpool_base_registration_t *reg, struct mca_btl_base_endpoint_t *endpoint);
|
|
|
|
#else
|
|
|
|
static inline mca_mpool_base_registration_t *vader_get_registation (struct mca_btl_base_endpoint_t *endpoint, void *rem_ptr,
|
|
size_t size, int flags, void **local_ptr)
|
|
{
|
|
(void) endpoint;
|
|
(void) rem_ptr;
|
|
(void) size;
|
|
(void) flags;
|
|
(void) local_ptr;
|
|
return NULL;
|
|
}
|
|
|
|
static inline void vader_return_registration (mca_mpool_base_registration_t *reg, struct mca_btl_base_endpoint_t *endpoint)
|
|
{
|
|
(void) reg;
|
|
(void) endpoint;
|
|
}
|
|
|
|
#endif /* OMPI_BTL_VADER_HAVE_XPMEM */
|
|
|
|
#endif
|