Skip to content

Commit

Permalink
SPML/UCX: Fix compilation warnings with GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygx committed Feb 2, 2020
1 parent 48c04cd commit 72d2861
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions oshmem/mca/spml/ucx/spml_ucx.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ int mca_spml_ucx_enable(bool enable)

int mca_spml_ucx_del_procs(ompi_proc_t** procs, size_t nprocs)
{
size_t ucp_workers = mca_spml_ucx.ucp_workers;
opal_common_ucx_del_proc_t *del_procs;
size_t i, w, n;
int ret;
int ucp_workers = mca_spml_ucx.ucp_workers;

oshmem_shmem_barrier();

Expand Down Expand Up @@ -281,16 +281,16 @@ int mca_spml_ucx_clear_put_op_mask(mca_spml_ucx_ctx_t *ctx)

int mca_spml_ucx_add_procs(ompi_proc_t** procs, size_t nprocs)
{
size_t i, j, k, w, n;
int rc = OSHMEM_ERROR;
int my_rank = oshmem_my_proc_id();
int ucp_workers = mca_spml_ucx.ucp_workers;
int rc = OSHMEM_ERROR;
int my_rank = oshmem_my_proc_id();
size_t ucp_workers = mca_spml_ucx.ucp_workers;
unsigned int *wk_roffs = NULL;
unsigned int *wk_rsizes = NULL;
char *wk_raddrs = NULL;
size_t i, j, w, n;
ucs_status_t err;
ucp_address_t **wk_local_addr;
unsigned int *wk_addr_len;
unsigned int *wk_roffs = NULL;
unsigned int *wk_rsizes = NULL;
char *wk_raddrs = NULL;
ucp_ep_params_t ep_params;

wk_local_addr = calloc(mca_spml_ucx.ucp_workers, sizeof(ucp_address_t *));
Expand Down Expand Up @@ -749,9 +749,8 @@ static int mca_spml_ucx_ctx_create_common(long options, mca_spml_ucx_ctx_t **ucx

int mca_spml_ucx_ctx_create(long options, shmem_ctx_t *ctx)
{
mca_spml_ucx_ctx_t *ucx_ctx = NULL;
mca_spml_ucx_ctx_t *ucx_ctx = NULL;
mca_spml_ucx_ctx_array_t *idle_array = &mca_spml_ucx.idle_array;
mca_spml_ucx_ctx_array_t *active_array = &mca_spml_ucx.active_array;
int i = 0, rc = OSHMEM_SUCCESS;

/* Take a lock controlling context creation. AUX context may set specific
Expand Down

0 comments on commit 72d2861

Please sign in to comment.