OMPI_ENABLE_DEBUG is always defined (to 0 or 1). Use #if and nto #ifdef.
This commit was SVN r10537.
Этот коммит содержится в:
родитель
704a5eb645
Коммит
e58a89ef3e
@ -25,7 +25,7 @@ struct mca_btl_openib_eager_rdma_local_t {
|
||||
uint16_t head; /**< RDMA buffer to poll */
|
||||
uint16_t tail; /**< Needed for credit managment */
|
||||
int32_t credits; /**< number of RDMA credits */
|
||||
#ifdef OMPI_ENABLE_DEBUG
|
||||
#if OMPI_ENABLE_DEBUG
|
||||
uint32_t seq;
|
||||
#endif
|
||||
opal_mutex_t lock; /**< guard access to RDMA buffer */
|
||||
@ -37,7 +37,7 @@ struct mca_btl_openib_eager_rdma_remote_t {
|
||||
uint32_t rkey; /**< RKey for accessing remote buffer */
|
||||
uint16_t head; /**< RDMA buffer to post to */
|
||||
int32_t tokens; /**< number of rdam tokens */
|
||||
#ifdef OMPI_ENABLE_DEBUG
|
||||
#if OMPI_ENABLE_DEBUG
|
||||
uint32_t seq;
|
||||
#endif
|
||||
};
|
||||
|
@ -167,7 +167,7 @@ static inline int mca_btl_openib_endpoint_post_send(mca_btl_openib_module_t* ope
|
||||
frag->wr_desc.sr_desc.opcode = IBV_WR_RDMA_WRITE;
|
||||
MCA_BTL_OPENIB_RDMA_FRAG_SET_SIZE(ftr, frag->sg_entry.length);
|
||||
MCA_BTL_OPENIB_RDMA_MAKE_LOCAL(ftr);
|
||||
#ifdef OMPI_ENABLE_DEBUG
|
||||
#if OMPI_ENABLE_DEBUG
|
||||
((mca_btl_openib_footer_t*)(((char*)frag->segment.seg_addr.pval) +
|
||||
frag->segment.seg_len))->seq =
|
||||
endpoint->eager_rdma_remote.seq++;
|
||||
|
@ -40,7 +40,7 @@ struct mca_btl_openib_header_t {
|
||||
typedef struct mca_btl_openib_header_t mca_btl_openib_header_t;
|
||||
|
||||
struct mca_btl_openib_footer_t {
|
||||
#ifdef OMPI_ENABLE_DEBUG
|
||||
#if OMPI_ENABLE_DEBUG
|
||||
uint32_t seq;
|
||||
#endif
|
||||
union {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user