From 9b501eb66dbde405e3ccbe8df87d21c0193412b6 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 11 Jul 2007 00:04:33 +0000 Subject: [PATCH] Looks like MAX is not a standard macro. Anyway, that the heavy requests is larger than the thin seems to be a "correct" assumption. This commit was SVN r15348. --- ompi/mca/pml/cm/pml_cm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ompi/mca/pml/cm/pml_cm.c b/ompi/mca/pml/cm/pml_cm.c index 8b7a02135b..a5be0e6330 100644 --- a/ompi/mca/pml/cm/pml_cm.c +++ b/ompi/mca/pml/cm/pml_cm.c @@ -57,8 +57,7 @@ mca_pml_cm_enable(bool enable) /* BWB - FIX ME - need to have this actually do something, maybe? */ ompi_free_list_init(&mca_pml_base_send_requests, - MAX(sizeof(mca_pml_cm_thin_send_request_t), - sizeof(mca_pml_cm_hvy_send_request_t)) + ompi_mtl->mtl_request_size, + sizeof(mca_pml_cm_hvy_send_request_t) + ompi_mtl->mtl_request_size, OBJ_CLASS(mca_pml_cm_hvy_send_request_t), ompi_pml_cm.free_list_num, ompi_pml_cm.free_list_max, @@ -66,8 +65,7 @@ mca_pml_cm_enable(bool enable) NULL); ompi_free_list_init(&mca_pml_base_send_requests, - MAX(sizeof(mca_pml_cm_thin_recv_request_t), - sizeof(mca_pml_cm_hvy_recv_request_t)) + ompi_mtl->mtl_request_size, + sizeof(mca_pml_cm_hvy_recv_request_t) + ompi_mtl->mtl_request_size, OBJ_CLASS(mca_pml_cm_hvy_recv_request_t), ompi_pml_cm.free_list_num, ompi_pml_cm.free_list_max,