Add endpoint parameter to btl_alloc() function. Enables various optimizations
inside BTL. This commit was SVN r16898.
Этот коммит содержится в:
родитель
2d784752dd
Коммит
7364b7cf47
@ -260,7 +260,7 @@ typedef struct mca_bml_base_endpoint_t mca_bml_base_endpoint_t;
|
||||
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(mca_bml_base_endpoint_t);
|
||||
|
||||
static inline void mca_bml_base_alloc(mca_bml_base_btl_t* bml_btl, mca_btl_base_descriptor_t** des, uint8_t order, size_t size) {
|
||||
*des = bml_btl->btl_alloc(bml_btl->btl, order, size);
|
||||
*des = bml_btl->btl_alloc(bml_btl->btl, bml_btl->btl_endpoint, order, size);
|
||||
}
|
||||
|
||||
static inline void mca_bml_base_free(mca_bml_base_btl_t* bml_btl, mca_btl_base_descriptor_t* des) {
|
||||
|
@ -515,6 +515,7 @@ typedef int (*mca_btl_base_module_register_error_fn_t)(
|
||||
|
||||
typedef mca_btl_base_descriptor_t* (*mca_btl_base_module_alloc_fn_t)(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size
|
||||
);
|
||||
|
@ -221,9 +221,11 @@ int mca_btl_elan_register( struct mca_btl_base_module_t* btl,
|
||||
* @param size (IN) Request segment size.
|
||||
*/
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_elan_alloc(struct mca_btl_base_module_t* btl,
|
||||
uint8_t order,
|
||||
size_t size )
|
||||
mca_btl_base_descriptor_t* mca_btl_elan_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* peer,
|
||||
uint8_t order,
|
||||
size_t size )
|
||||
{
|
||||
mca_btl_elan_frag_t* frag;
|
||||
int rc;
|
||||
|
@ -290,7 +290,8 @@ extern int mca_btl_elan_register(
|
||||
*/
|
||||
|
||||
extern mca_btl_base_descriptor_t* mca_btl_elan_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* peer,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
@ -202,6 +202,7 @@ int mca_btl_gm_register_error_cb(
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_gm_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -291,7 +291,8 @@ extern int mca_btl_gm_register_error_cb(
|
||||
*/
|
||||
|
||||
extern mca_btl_base_descriptor_t* mca_btl_gm_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
@ -163,6 +163,7 @@ int mca_btl_mx_register( struct mca_btl_base_module_t* btl,
|
||||
*/
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_mx_alloc( struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size )
|
||||
{
|
||||
|
@ -253,7 +253,8 @@ extern int mca_btl_mx_register(
|
||||
* @param size (IN) Request segment size.
|
||||
*/
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_mx_alloc( struct mca_btl_base_module_t* btl,
|
||||
mca_btl_base_descriptor_t* mca_btl_mx_alloc( struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size );
|
||||
|
||||
|
@ -218,6 +218,7 @@ int mca_btl_ud_register(struct mca_btl_base_module_t* btl,
|
||||
*/
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_ud_alloc(struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -294,6 +294,7 @@ extern int mca_btl_ud_send(struct mca_btl_base_module_t* btl,
|
||||
|
||||
extern mca_btl_base_descriptor_t* mca_btl_ud_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
@ -493,6 +493,7 @@ int mca_btl_openib_register_error_cb(
|
||||
*/
|
||||
mca_btl_base_descriptor_t* mca_btl_openib_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -474,9 +474,10 @@ extern int mca_btl_openib_get(
|
||||
* @param size (IN) Requested descriptor size.
|
||||
*/
|
||||
extern mca_btl_base_descriptor_t* mca_btl_openib_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -241,8 +241,9 @@ mca_btl_portals_register(struct mca_btl_base_module_t* btl_base,
|
||||
|
||||
mca_btl_base_descriptor_t*
|
||||
mca_btl_portals_alloc(struct mca_btl_base_module_t* btl_base,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
size_t size)
|
||||
{
|
||||
int rc;
|
||||
mca_btl_portals_frag_t* frag;
|
||||
|
@ -172,6 +172,7 @@ int mca_btl_portals_register(struct mca_btl_base_module_t* btl_base,
|
||||
|
||||
mca_btl_base_descriptor_t*
|
||||
mca_btl_portals_alloc(struct mca_btl_base_module_t* btl_base,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
@ -184,6 +184,7 @@ int mca_btl_sctp_register(
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_sctp_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -292,6 +292,7 @@ extern int mca_btl_sctp_register(
|
||||
|
||||
extern mca_btl_base_descriptor_t* mca_btl_sctp_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
@ -148,9 +148,11 @@ int mca_btl_self_register( struct mca_btl_base_module_t* btl,
|
||||
* @param btl (IN) BTL module
|
||||
* @param size (IN) Request segment size.
|
||||
*/
|
||||
mca_btl_base_descriptor_t* mca_btl_self_alloc( struct mca_btl_base_module_t* btl,
|
||||
uint8_t order,
|
||||
size_t size )
|
||||
mca_btl_base_descriptor_t* mca_btl_self_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size )
|
||||
{
|
||||
mca_btl_self_frag_t* frag;
|
||||
int rc;
|
||||
|
@ -163,6 +163,7 @@ int mca_btl_self_register(
|
||||
*/
|
||||
mca_btl_base_descriptor_t* mca_btl_self_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size
|
||||
);
|
||||
|
@ -719,6 +719,7 @@ int mca_btl_sm_register_error_cb(
|
||||
*/
|
||||
extern mca_btl_base_descriptor_t* mca_btl_sm_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -278,6 +278,7 @@ extern int mca_btl_sm_register(
|
||||
*/
|
||||
extern mca_btl_base_descriptor_t* mca_btl_sm_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size
|
||||
);
|
||||
|
@ -186,6 +186,7 @@ int mca_btl_tcp_register(
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_tcp_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -293,7 +293,8 @@ extern int mca_btl_tcp_register(
|
||||
*/
|
||||
|
||||
extern mca_btl_base_descriptor_t* mca_btl_tcp_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
@ -165,6 +165,7 @@ int mca_btl_template_register(
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_template_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -257,7 +257,8 @@ extern int mca_btl_template_register(
|
||||
*/
|
||||
|
||||
extern mca_btl_base_descriptor_t* mca_btl_template_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
@ -735,6 +735,7 @@ int mca_btl_udapl_register(
|
||||
|
||||
mca_btl_base_descriptor_t* mca_btl_udapl_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size)
|
||||
{
|
||||
|
@ -342,7 +342,8 @@ extern int mca_btl_udapl_register(
|
||||
*/
|
||||
|
||||
extern mca_btl_base_descriptor_t* mca_btl_udapl_alloc(
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_module_t* btl,
|
||||
struct mca_btl_base_endpoint_t* endpoint,
|
||||
uint8_t order,
|
||||
size_t size);
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user