624f139bd8
it may contain garbage and we will try to unregister it later in btl_free(). This commit was SVN r13054. The following Trac tickets were found above: Ticket 729 --> https://svn.open-mpi.org/trac/ompi/ticket/729
60 строки
1.5 KiB
C
60 строки
1.5 KiB
C
#include "btl_template_frag.h"
|
|
|
|
|
|
|
|
static void mca_btl_template_frag_common_constructor(mca_btl_template_frag_t* frag)
|
|
{
|
|
mca_btl_template_frag_common_constructor(frag);
|
|
frag->base.des_src = NULL;
|
|
frag->base.des_src_cnt = 0;
|
|
frag->base.des_dst = NULL;
|
|
frag->base.des_dst_cnt = 0;
|
|
}
|
|
|
|
static void mca_btl_template_frag_eager_constructor(mca_btl_template_frag_t* frag)
|
|
{
|
|
frag->registration = NULL;
|
|
frag->size = mca_btl_template_module.super.btl_eager_limit;
|
|
mca_btl_template_frag_common_constructor(frag);
|
|
}
|
|
|
|
static void mca_btl_template_frag_max_constructor(mca_btl_template_frag_t* frag)
|
|
{
|
|
frag->registration = NULL;
|
|
frag->size = mca_btl_template_module.super.btl_max_send_size;
|
|
mca_btl_template_frag_common_constructor(frag);
|
|
}
|
|
|
|
static void mca_btl_template_frag_user_constructor(mca_btl_template_frag_t* frag)
|
|
{
|
|
frag->size = 0;
|
|
frag->registration = NULL;
|
|
mca_btl_template_frag_common_constructor(frag);
|
|
}
|
|
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_template_frag_t,
|
|
mca_btl_base_descriptor_t,
|
|
NULL,
|
|
NULL);
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_template_frag_eager_t,
|
|
mca_btl_base_descriptor_t,
|
|
mca_btl_template_frag_eager_constructor,
|
|
NULL);
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_template_frag_max_t,
|
|
mca_btl_base_descriptor_t,
|
|
mca_btl_template_frag_max_constructor,
|
|
NULL);
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
mca_btl_template_frag_user_t,
|
|
mca_btl_base_descriptor_t,
|
|
mca_btl_template_frag_user_constructor,
|
|
NULL);
|
|
|