From 1a20c3ce516c9f811d2bdfbb5a6ea2ed620e32fa Mon Sep 17 00:00:00 2001 From: Rich Graham Date: Wed, 9 Apr 2008 16:19:52 +0000 Subject: [PATCH] more debug. This commit was SVN r18109. --- ompi/mca/coll/sm2/coll_sm2_module.c | 4 ++-- ompi/mca/coll/sm2/coll_sm2_reduce.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ompi/mca/coll/sm2/coll_sm2_module.c b/ompi/mca/coll/sm2/coll_sm2_module.c index c1e93cdf11..10e91b139d 100644 --- a/ompi/mca/coll/sm2/coll_sm2_module.c +++ b/ompi/mca/coll/sm2/coll_sm2_module.c @@ -1345,9 +1345,9 @@ int free_sm2_shared_buffer(mca_coll_sm2_module_t *module) } - /* debug */ + /* debug free_buff_free_index=module->sm2_freed_buffer_index; - /* end debug */ + end debug */ /* return */ return OMPI_SUCCESS; diff --git a/ompi/mca/coll/sm2/coll_sm2_reduce.c b/ompi/mca/coll/sm2/coll_sm2_reduce.c index 47f4e1a92c..935695f9f9 100644 --- a/ompi/mca/coll/sm2/coll_sm2_reduce.c +++ b/ompi/mca/coll/sm2/coll_sm2_reduce.c @@ -25,6 +25,7 @@ extern uint64_t timers[7]; extern void debug_module(void); extern int last_root; extern int node_type; +extern int free_buff_free_index; int last_root; int node_type; /* end debug */ @@ -116,6 +117,9 @@ int mca_coll_sm2_reduce_intra_fanin(void *sbuf, void *rbuf, int count, /* get a pointer to the shared-memory working buffer */ sm_buffer_desc=alloc_sm2_shared_buffer(sm_module); + /* debug */ + free_buff_free_index=tag; + /* end debug */ /* get number of elements to process in this stripe */ count_this_stripe=count;