2013-07-11 20:54:12 +00:00
|
|
|
/* -*- 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"
|
|
|
|
|
2014-01-06 19:51:44 +00:00
|
|
|
#if OMPI_BTL_VADER_HAVE_XPMEM
|
2013-07-11 20:54:12 +00:00
|
|
|
/* look up the remote pointer in the peer rcache and attach if
|
|
|
|
* necessary */
|
2014-01-06 19:51:44 +00:00
|
|
|
|
2014-02-11 16:28:25 +00:00
|
|
|
/* largest address we can attach to using xpmem */
|
|
|
|
#define VADER_MAX_ADDRESS ((uintptr_t)0x7ffffffff000ul)
|
|
|
|
|
2013-07-11 20:54:12 +00:00
|
|
|
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);
|
|
|
|
|
2014-01-06 19:51:44 +00:00
|
|
|
#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 */
|
|
|
|
|
2013-07-11 20:54:12 +00:00
|
|
|
#endif
|