remove MCA_BTL_IB_FRAG_ALIGN. Alignment is handled in free_list_t.
This commit was SVN r10945.
Этот коммит содержится в:
родитель
f9fd98449c
Коммит
3b34dc8df8
@ -616,11 +616,9 @@ mca_btl_base_module_t** mca_btl_openib_component_init(int *num_btl_modules,
|
|||||||
length = sizeof(mca_btl_openib_frag_t) +
|
length = sizeof(mca_btl_openib_frag_t) +
|
||||||
sizeof(mca_btl_openib_header_t) +
|
sizeof(mca_btl_openib_header_t) +
|
||||||
sizeof(mca_btl_openib_footer_t) +
|
sizeof(mca_btl_openib_footer_t) +
|
||||||
openib_btl->super.btl_eager_limit+
|
openib_btl->super.btl_eager_limit;
|
||||||
2*MCA_BTL_IB_FRAG_ALIGN;
|
|
||||||
|
|
||||||
openib_btl->eager_rdma_frag_size =
|
openib_btl->eager_rdma_frag_size = length;
|
||||||
length & ~(2 * MCA_BTL_IB_FRAG_ALIGN - 1);
|
|
||||||
|
|
||||||
ompi_free_list_init_ex(&openib_btl->send_free_eager,
|
ompi_free_list_init_ex(&openib_btl->send_free_eager,
|
||||||
length,
|
length,
|
||||||
@ -644,8 +642,7 @@ mca_btl_base_module_t** mca_btl_openib_component_init(int *num_btl_modules,
|
|||||||
|
|
||||||
length = sizeof(mca_btl_openib_frag_t) +
|
length = sizeof(mca_btl_openib_frag_t) +
|
||||||
sizeof(mca_btl_openib_header_t) +
|
sizeof(mca_btl_openib_header_t) +
|
||||||
openib_btl->super.btl_max_send_size +
|
openib_btl->super.btl_max_send_size;
|
||||||
2*MCA_BTL_IB_FRAG_ALIGN;
|
|
||||||
|
|
||||||
|
|
||||||
ompi_free_list_init_ex(&openib_btl->send_free_max,
|
ompi_free_list_init_ex(&openib_btl->send_free_max,
|
||||||
@ -668,9 +665,7 @@ mca_btl_base_module_t** mca_btl_openib_component_init(int *num_btl_modules,
|
|||||||
mca_btl_openib_component.ib_free_list_max,
|
mca_btl_openib_component.ib_free_list_max,
|
||||||
mca_btl_openib_component.ib_free_list_inc, openib_btl->super.btl_mpool);
|
mca_btl_openib_component.ib_free_list_inc, openib_btl->super.btl_mpool);
|
||||||
|
|
||||||
length = sizeof(mca_btl_openib_frag_t) +
|
length = sizeof(mca_btl_openib_frag_t);
|
||||||
sizeof(mca_btl_openib_header_t)+
|
|
||||||
2*MCA_BTL_IB_FRAG_ALIGN;
|
|
||||||
|
|
||||||
ompi_free_list_init(&openib_btl->send_free_frag,
|
ompi_free_list_init(&openib_btl->send_free_frag,
|
||||||
length,
|
length,
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
#ifndef MCA_BTL_IB_FRAG_H
|
#ifndef MCA_BTL_IB_FRAG_H
|
||||||
#define MCA_BTL_IB_FRAG_H
|
#define MCA_BTL_IB_FRAG_H
|
||||||
|
|
||||||
|
|
||||||
#define MCA_BTL_IB_FRAG_ALIGN (8)
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
#include "btl_openib.h"
|
#include "btl_openib.h"
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user