1
1

Complete the dump function for the SM BTL. Now we can see all fragments in all

the queues as long as the BTL is dump-friendly (only SM right now).

This commit was SVN r26849.
Этот коммит содержится в:
George Bosilca 2012-07-24 00:22:22 +00:00
родитель 55bc3c4763
Коммит 6ebbacb054
3 изменённых файлов: 31 добавлений и 9 удалений

Просмотреть файл

@ -2,7 +2,7 @@
* Copyright (c) 2004-2011 The Trustees of Indiana University and Indiana * Copyright (c) 2004-2011 The Trustees of Indiana University and Indiana
* University Research and Technology * University Research and Technology
* Corporation. All rights reserved. * Corporation. All rights reserved.
* Copyright (c) 2004-2009 The University of Tennessee and The University * Copyright (c) 2004-2012 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights * of Tennessee Research Foundation. All rights
* reserved. * reserved.
* Copyright (c) 2004-2007 High Performance Computing Center Stuttgart, * Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
@ -93,7 +93,7 @@ mca_btl_sm_t mca_btl_sm = {
mca_btl_sm_sendi, mca_btl_sm_sendi,
NULL, /* put */ NULL, /* put */
NULL, /* get -- optionally filled during initialization */ NULL, /* get -- optionally filled during initialization */
mca_btl_base_dump, mca_btl_sm_dump,
NULL, /* mpool */ NULL, /* mpool */
mca_btl_sm_register_error_cb, /* register error */ mca_btl_sm_register_error_cb, /* register error */
mca_btl_sm_ft_event mca_btl_sm_ft_event
@ -1138,6 +1138,28 @@ int mca_btl_sm_get_async(struct mca_btl_base_module_t* btl,
} }
#endif /* OMPI_BTL_SM_HAVE_KNEM */ #endif /* OMPI_BTL_SM_HAVE_KNEM */
/**
*
*/
void mca_btl_sm_dump(struct mca_btl_base_module_t* btl,
struct mca_btl_base_endpoint_t* endpoint,
int verbose)
{
opal_list_item_t *item;
mca_btl_sm_frag_t* frag;
mca_btl_base_err("BTL SM %p endpoint %p [smp_rank %d] [peer_rank %d]\n",
btl, endpoint, endpoint->my_smp_rank, endpoint->peer_smp_rank);
if( NULL != endpoint ) {
for(item = opal_list_get_first(&endpoint->pending_sends);
item != opal_list_get_end(&endpoint->pending_sends);
item = opal_list_get_next(item)) {
frag = (mca_btl_sm_frag_t*)item;
mca_btl_base_err(" | frag %p size %lu (hdr frag %p len %lu rank tag %d)\n",
frag, frag->size, frag->hdr->frag, frag->hdr->len, frag->hdr->my_smp_rank, frag->hdr->tag);
}
}
}
#if OPAL_ENABLE_FT_CR == 0 #if OPAL_ENABLE_FT_CR == 0
int mca_btl_sm_ft_event(int state) { int mca_btl_sm_ft_event(int state) {

Просмотреть файл

@ -2,7 +2,7 @@
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology * University Research and Technology
* Corporation. All rights reserved. * Corporation. All rights reserved.
* Copyright (c) 2004-2009 The University of Tennessee and The University * Copyright (c) 2004-2012 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights * of Tennessee Research Foundation. All rights
* reserved. * reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
@ -239,10 +239,6 @@ struct mca_btl_sm_t {
typedef struct mca_btl_sm_t mca_btl_sm_t; typedef struct mca_btl_sm_t mca_btl_sm_t;
OMPI_MODULE_DECLSPEC extern mca_btl_sm_t mca_btl_sm; OMPI_MODULE_DECLSPEC extern mca_btl_sm_t mca_btl_sm;
struct btl_sm_pending_send_item_t struct btl_sm_pending_send_item_t
{ {
opal_free_list_item_t super; opal_free_list_item_t super;
@ -528,6 +524,10 @@ extern int mca_btl_sm_get_async(
#endif #endif
extern void mca_btl_sm_dump(struct mca_btl_base_module_t* btl,
struct mca_btl_base_endpoint_t* endpoint,
int verbose);
/** /**
* Fault Tolerance Event Notification Function * Fault Tolerance Event Notification Function
* @param state Checkpoint Stae * @param state Checkpoint Stae

Просмотреть файл

@ -2,7 +2,7 @@
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology * University Research and Technology
* Corporation. All rights reserved. * Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University * Copyright (c) 2004-2012 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights * of Tennessee Research Foundation. All rights
* reserved. * reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
@ -39,7 +39,7 @@ struct mca_btl_base_endpoint_t {
opal_list_t pending_sends; /**< pending data to send */ opal_list_t pending_sends; /**< pending data to send */
/** lock for concurrent access to endpoint state */ /** lock for concurrent access to endpoint state */
opal_mutex_t endpoint_lock; opal_mutex_t endpoint_lock;
}; };