Skip to content

mtl/ofi: Remove trailing whitespaces #11038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ompi/mca/mtl/ofi/mtl_ofi.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extern opal_thread_local struct fi_cq_tagged_entry ompi_mtl_ofi_wc[MTL_OFI_MAX_P
#endif

#define MCA_MTL_OFI_CID_NOT_EXCHANGED 2
#define MCA_MTL_OFI_CID_EXCHANGING 1
#define MCA_MTL_OFI_CID_EXCHANGING 1
#define MCA_MTL_OFI_CID_EXCHANGED 0

typedef struct {
Expand Down Expand Up @@ -598,7 +598,7 @@ ompi_mtl_ofi_post_recv_excid_buffer(bool blocking, struct ompi_communicator_t *c
mca_mtl_ofi_cid_hdr_t *start = malloc(sizeof(mca_mtl_ofi_cid_hdr_t));
size_t length = sizeof(mca_mtl_ofi_cid_hdr_t);
mca_mtl_comm_t *mtl_comm;

mtl_comm = comm->c_mtl_comm;

set_thread_context(ctxt_id);
Expand Down Expand Up @@ -711,7 +711,7 @@ ompi_mtl_ofi_send_excid(struct mca_mtl_base_module_t *mtl,
mca_mtl_ofi_endpoint_t *endpoint = NULL;
fi_addr_t sep_peer_fiaddr = 0;
mca_mtl_comm_t *mtl_comm;

ofi_req = (ompi_mtl_ofi_request_t *)malloc(sizeof(ompi_mtl_ofi_request_t));
if (NULL == ofi_req) {
ret = OMPI_ERR_OUT_OF_RESOURCE;
Expand Down Expand Up @@ -1661,7 +1661,7 @@ ompi_mtl_ofi_improbe_generic(struct mca_mtl_base_module_t *mtl,

if (!OMPI_COMM_IS_GLOBAL_INDEX(comm)) {
mtl_comm = comm->c_mtl_comm;
if ((src == MPI_ANY_SOURCE || mtl_comm->c_index_vec[src].c_index_state > MCA_MTL_OFI_CID_EXCHANGED)
if ((src == MPI_ANY_SOURCE || mtl_comm->c_index_vec[src].c_index_state > MCA_MTL_OFI_CID_EXCHANGED)
&& !ompi_mtl_ofi.has_posted_initial_buffer) {
ompi_mtl_ofi.has_posted_initial_buffer = true;
ret = ompi_mtl_ofi_post_recv_excid_buffer(false, comm, -1);
Expand Down
2 changes: 1 addition & 1 deletion ompi/mca/mtl/ofi/mtl_ofi_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
ompi_mtl_ofi.any_addr = FI_ADDR_UNSPEC;
ompi_mtl_ofi.is_initialized = false;
ompi_mtl_ofi.has_posted_initial_buffer = false;

ompi_mtl_ofi.base.mtl_flags |= MCA_MTL_BASE_FLAG_SUPPORTS_EXT_CID;

return &ompi_mtl_ofi.base;
Expand Down