2014-10-18 03:06:33 +04:00
|
|
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
|
|
|
/*
|
2015-01-06 02:02:41 +03:00
|
|
|
* Copyright (c) 2014-2015 Los Alamos National Security, LLC. All rights
|
2014-10-18 03:06:33 +04:00
|
|
|
* reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(BTL_VADER_KNEM_H)
|
|
|
|
#define BTL_VADER_KNEM_H
|
|
|
|
|
|
|
|
#if OPAL_BTL_VADER_HAVE_KNEM
|
|
|
|
|
|
|
|
#include <knem_io.h>
|
|
|
|
#include <sys/mman.h>
|
|
|
|
|
2015-01-06 02:02:41 +03:00
|
|
|
/* At this time only knem requires a registration of "RDMA" buffers */
|
|
|
|
struct mca_btl_base_registration_handle_t {
|
|
|
|
uint64_t cookie;
|
|
|
|
intptr_t base_addr;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct mca_btl_vader_registration_handle_t {
|
2015-11-02 22:07:08 +03:00
|
|
|
mca_rcache_base_registration_t base;
|
2015-01-06 02:02:41 +03:00
|
|
|
mca_btl_base_registration_handle_t btl_handle;
|
|
|
|
};
|
|
|
|
typedef struct mca_btl_vader_registration_handle_t mca_btl_vader_registration_handle_t;
|
|
|
|
|
2014-10-18 03:06:33 +04:00
|
|
|
int mca_btl_vader_knem_init (void);
|
|
|
|
int mca_btl_vader_knem_fini (void);
|
|
|
|
int mca_btl_vader_knem_progress (void);
|
|
|
|
|
|
|
|
#endif /* OPAL_BTL_VADER_HAVE_KNEM */
|
|
|
|
|
|
|
|
#endif /* defined(BTL_VADER_KNEM_H) */
|