Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 718ca8d

Browse files
committed
Merge pull request #989 from sjeaugey/v2.x
Fix CUDA in v2.x
2 parents e46035b + 236e76d commit 718ca8d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

ompi/mca/pml/ob1/pml_ob1.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ mca_pml_ob1_t mca_pml_ob1 = {
8181
};
8282

8383
#if OPAL_CUDA_SUPPORT
84-
void mca_pml_ob1_cuda_add_ipc_support(struct mca_btl_base_module_t* btl,
85-
int32_t flags, ompi_proc_t* errproc,
86-
char* btlinfo);
84+
extern void mca_pml_ob1_cuda_add_ipc_support(struct mca_btl_base_module_t* btl,
85+
int32_t flags, ompi_proc_t* errproc,
86+
char* btlinfo);
8787
#endif /* OPAL_CUDA_SUPPORT */
8888

8989
void mca_pml_ob1_error_handler( struct mca_btl_base_module_t* btl,
@@ -560,7 +560,7 @@ int mca_pml_ob1_dump(struct ompi_communicator_t* comm, int verbose)
560560
continue;
561561
}
562562

563-
mca_bml_base_endpoint_t* ep = (mca_bml_base_endpoint_t*)proc->ompi_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_BML];
563+
mca_bml_base_endpoint_t* ep = mca_bml_base_get_endpoint(proc->ompi_proc);
564564
size_t n;
565565

566566
opal_output(0, "[Rank %d] expected_seq %d ompi_proc %p send_seq %d\n",

ompi/mca/pml/ob1/pml_ob1_cuda.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ int mca_pml_ob1_cuda_need_buffers(void * rreq,
156156
mca_btl_base_module_t* btl)
157157
{
158158
mca_pml_ob1_recv_request_t* recvreq = (mca_pml_ob1_recv_request_t*)rreq;
159-
mca_bml_base_endpoint_t* bml_endpoint =
160-
(mca_bml_base_endpoint_t*)recvreq->req_recv.req_base.req_proc->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_BML];
159+
mca_bml_base_endpoint_t* bml_endpoint = mca_bml_base_get_endpoint (recvreq->req_recv.req_base.req_proc);
161160
mca_bml_base_btl_t *bml_btl = mca_bml_base_btl_array_find(&bml_endpoint->btl_send, btl);
162161

163162
/* A btl could be in the rdma list but not in the send list so check there also */

0 commit comments

Comments
 (0)