Skip to content

Commit 236e76d

Browse files
bosilcasjeaugey
authored andcommitted
Use mca_bml_base_get_endpoint
Correctly use mca_bml_base_get_endpoint instead of accessing the endpoint directly.
1 parent 34d590e commit 236e76d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
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",

0 commit comments

Comments
 (0)