Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rob Latham
MPICH-BlueGene
Commits
3a780c43
Commit
3a780c43
authored
Dec 04, 2013
by
Masamichi Takagi
Committed by
Pavan Balaji
Dec 05, 2013
Browse files
Modify macro name for DCFA specific lines
Signed-off-by:
Pavan Balaji
<
balaji@mcs.anl.gov
>
parent
b8c870e7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
src/mpid/ch3/channels/nemesis/netmod/dcfa/dcfa_ibcom.c
View file @
3a780c43
This diff is collapsed.
Click to expand it.
src/mpid/ch3/channels/nemesis/netmod/dcfa/dcfa_ibcom.h
View file @
3a780c43
...
...
@@ -13,6 +13,7 @@
#include <stdint.h>
#include <sys/types.h>
#include <sys/mman.h>
#include "mpid_nem_impl.h"
//#define DEBUG_ON 1
#ifdef DEBUG_ON
...
...
@@ -21,7 +22,7 @@
#define DEBUG if (0)
#endif
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
#include "dcfa.h"
/*
...
...
@@ -271,7 +272,7 @@ typedef struct IbCom {
short
icom_used
;
short
icom_connected
;
int
icom_port
;
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
#else
struct
ibv_port_attr
icom_pattr
;
/* IB port attributes */
#endif
...
...
src/mpid/ch3/channels/nemesis/netmod/dcfa/dcfa_lmt.c
View file @
3a780c43
...
...
@@ -82,7 +82,7 @@ int MPID_nem_dcfa_lmt_initiate_lmt(struct MPIDI_VC *vc, union MPIDI_CH3_Pkt *rts
(
"lmt_initate_lmt,dt_contig=%d,write_from_buf=%p,req->dev.user_buf=%p,REQ_FIELD(req, lmt_pack_buf)=%p
\n
"
,
dt_contig
,
write_from_buf
,
req
->
dev
.
user_buf
,
REQ_FIELD
(
req
,
lmt_pack_buf
));
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
#else
s_cookie_buf
->
addr
=
write_from_buf
;
#endif
...
...
@@ -111,7 +111,7 @@ int MPID_nem_dcfa_lmt_initiate_lmt(struct MPIDI_VC *vc, union MPIDI_CH3_Pkt *rts
/* put IB rkey */
struct
ibv_mr
*
mr
=
ibcom_reg_mr_fetch
(
write_from_buf
,
data_sz
);
MPIU_ERR_CHKANDJUMP
(
!
mr
,
mpi_errno
,
MPI_ERR_OTHER
,
"**ibcom_reg_mr_fetch"
);
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
s_cookie_buf
->
addr
=
(
void
*
)
mr
->
host_addr
;
dprintf
(
"lmt_initiate_lmt,s_cookie_buf->addr=%p
\n
"
,
s_cookie_buf
->
addr
);
#endif
...
...
src/mpid/ch3/channels/nemesis/netmod/dcfa/dcfa_poll.c
View file @
3a780c43
...
...
@@ -63,7 +63,7 @@ int MPID_nem_dcfa_drain_scq(int dont_call_progress)
}
entered_drain_scq
=
1
;
#if 0 /*def DCFA */
#if 0 /*def
HAVE_LIB
DCFA */
result = ibv_poll_cq(rc_shared_scq, 1, &cqe[0]);
#else
result
=
ibv_poll_cq
(
rc_shared_scq
,
/*3 */
IBCOM_MAX_CQ_HEIGHT_DRAIN
,
&
cqe
[
0
]);
...
...
@@ -95,7 +95,7 @@ int MPID_nem_dcfa_drain_scq(int dont_call_progress)
printf
(
"%d
\n
"
,
*
(
int
*
)
0
);
}
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
if
(
cqe
[
i
].
status
!=
IBV_WC_SUCCESS
)
{
dprintf
(
"drain_scq,kind=%d,req_type=%d,msg_type=%d,cqe.status=%08x
\n
"
,
kind
,
req_type
,
msg_type
,
cqe
[
i
].
status
);
...
...
@@ -411,7 +411,7 @@ int MPID_nem_dcfa_drain_scq_lmt_put()
MPIDI_STATE_DECL
(
MPID_STATE_MPID_NEM_DCFA_DRAIN_SCQ_LMT_PUT
);
MPIDI_FUNC_ENTER
(
MPID_STATE_MPID_NEM_DCFA_DRAIN_SCQ_LMT_PUT
);
#if 0 /*def DCFA */
#if 0 /*def
HAVE_LIB
DCFA */
result = ibv_poll_cq(rc_shared_scq_lmt_put, 1, &cqe[0]);
#else
result
=
ibv_poll_cq
(
rc_shared_scq_lmt_put
,
IBCOM_MAX_CQ_HEIGHT_DRAIN
,
&
cqe
[
0
]);
...
...
@@ -427,7 +427,7 @@ int MPID_nem_dcfa_drain_scq_lmt_put()
MPID_Request_kind_t
kind
;
int
req_type
,
msg_type
;
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
if
(
cqe
[
i
].
status
!=
IBV_WC_SUCCESS
)
{
dprintf
(
"drain_scq_lmt_put,status=%08x
\n
"
,
cqe
[
i
].
status
);
}
...
...
@@ -521,7 +521,7 @@ int MPID_nem_dcfa_drain_scq_scratch_pad()
MPIDI_STATE_DECL
(
MPID_STATE_MPID_NEM_DCFA_DRAIN_SCQ_SCRATCH_PAD
);
MPIDI_FUNC_ENTER
(
MPID_STATE_MPID_NEM_DCFA_DRAIN_SCQ_SCRATCH_PAD
);
#if 0 /*def DCFA */
#if 0 /*def
HAVE_LIB
DCFA */
result = ibv_poll_cq(rc_shared_scq_scratch_pad, 1, &cqe[0]);
#else
result
=
ibv_poll_cq
(
rc_shared_scq_scratch_pad
,
IBCOM_MAX_CQ_HEIGHT_DRAIN
,
&
cqe
[
0
]);
...
...
@@ -533,7 +533,7 @@ int MPID_nem_dcfa_drain_scq_scratch_pad()
}
for
(
i
=
0
;
i
<
result
;
i
++
)
{
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
if
(
cqe
[
i
].
status
!=
IBV_WC_SUCCESS
)
{
dprintf
(
"drain_scq_scratch_pad,status=%08x
\n
"
,
cqe
[
i
].
status
);
}
...
...
@@ -1872,7 +1872,7 @@ int MPID_nem_dcfa_cm_drain_scq()
}
for
(
i
=
0
;
i
<
result
;
i
++
)
{
#ifdef DCFA
#ifdef
HAVE_LIB
DCFA
if
(
cqe
[
i
].
status
!=
IBV_WC_SUCCESS
)
{
dprintf
(
"cm_drain_scq,status=%08x
\n
"
,
cqe
[
i
].
status
);
}
...
...
src/mpid/ch3/channels/nemesis/netmod/dcfa/dcfa_reg_mr.c
View file @
3a780c43
...
...
@@ -175,7 +175,7 @@ struct ibv_mr *ibcom_reg_mr_fetch(void *addr, int len)
int
key
;
struct
ibcom_reg_mr_cache_entry_t
*
e
;
#if 1
/*def DCFA */
#if 1
/*def
HAVE_LIB
DCFA */
/* we can't change addr because ibv_post_send assumes mr->host_addr (output of this function)
* must have an exact mirror value of addr (input of this function) */
void
*
addr_aligned
=
addr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment