1
1
openmpi/ompi/mca/ptl/prof/ptl_prof.h
Brian Barrett 23b687b0f4 * rename ompi_event to opal_event
This commit was SVN r6328.
2005-07-03 23:09:55 +00:00

61 строка
1.9 KiB
C

/*
* Copyright (c) 2004-2005 The Trustees of Indiana University.
* All rights reserved.
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
* All rights reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
* */
/**
* * @file
* */
#ifndef PTL_PROF_H_HAS_BEEN_INCLUDED
#define PTL_PROF_H_HAS_BEEN_INCLUDED
#include "opal/event/event.h"
#include "mca/pml/pml.h"
#include "mca/ptl/ptl.h"
#include "mca/pml/base/pml_base_recvreq.h"
#include "mca/ptl/base/ptl_base_recvfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
typedef struct mca_ptl_prof mca_ptl_prof_t;
typedef struct mca_ptl_prof_module_1_0_0 mca_ptl_prof_module_1_0_0_t;
/**
* PROF PTL module.
*/
struct mca_ptl_prof_module_1_0_0 {
mca_ptl_base_component_t super; /**< base PTL module */
mca_ptl_prof_t** prof_ptls; /**< array of available PTLs */
uint32_t prof_num_ptls; /**< number of ptls actually used */
uint32_t prof_max_ptls; /**< maximum number of ptls - available kernel ifs */
uint32_t prof_buf_size; /**< the size of the internal buffer used to profile each PTL */
};
/**
* Profiling module.
*/
struct mca_ptl_prof {
mca_ptl_base_module_t super;
uint32_t prof_create_id;
uint32_t prof_start_send_id;
uint32_t prof_start_recv_id;
uint32_t prof_complete_id;
};
OBJ_CLASS_DECLARATION(mca_ptl_prof_t);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* PTL_PROF_H_HAS_BEEN_INCLUDED */