Skip to content

Commit d4843b1

Browse files
committed
SPML/UCS: CR comments p2
Signed-off-by: Mikhail Brinskii <mikhailb@mellanox.com>
1 parent c4c9945 commit d4843b1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

oshmem/include/shmemx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ OSHMEM_DECLSPEC void shmemx_int32_prod_to_all(int32_t *target, const int32_t *so
169169
OSHMEM_DECLSPEC void shmemx_int64_prod_to_all(int64_t *target, const int64_t *source, int nreduce, int PE_start, int logPE_stride, int PE_size, int64_t *pWrk, long *pSync);
170170

171171
/* shmemx_alltoall_global_nb is a nonblocking collective routine, where each PE
172-
* exchanges “size” bytes of data with all other PEs in the OpenSHMEM job.
172+
* exchanges “size” bytes of data with all other PEs in the OpenSHMEM job.
173173
174174
* @param dest A symmetric data object that is large enough to receive
175-
* “size” bytes of data.
175+
* “size” bytes of data from each PE in the OpenSHMEM job.
176176
* @param source A symmetric data object that contains “size” bytes of data
177177
* for each PE in the OpenSHMEM job.
178178
* @param size The number of bytes to be sent to each PE in the job.

oshmem/mca/spml/spml.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ typedef int (*mca_spml_base_module_send_fn_t)(void *buf,
329329
* shmemx_alltoall_global calls.
330330
*
331331
* @param dest A symmetric data object that is large enough to receive
332-
* “size” bytes of data.
332+
* “size” bytes of data from each PE in the OpenSHMEM job.
333333
* @param source A symmetric data object that contains “size” bytes of data
334334
* for each PE in the OpenSHMEM job.
335335
* @param size The number of bytes to be sent to each PE in the job.

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,14 +840,14 @@ static int mca_spml_ucx_create_aux_ctx(void)
840840

841841
if (rand_dci_supp) {
842842
pthread_mutex_lock(&mca_spml_ucx.ctx_create_mutex);
843-
opal_setenv("UCX_DC_MLX5_TX_POLICY", "rand", 1, &environ);
843+
opal_setenv("UCX_DC_MLX5_TX_POLICY", "rand", 0, &environ);
844844
}
845845

846846
rc = mca_spml_ucx_ctx_create_common(SHMEM_CTX_PRIVATE, &mca_spml_ucx.aux_ctx);
847847

848848
if (rand_dci_supp) {
849-
pthread_mutex_unlock(&mca_spml_ucx.ctx_create_mutex);
850849
opal_unsetenv("UCX_DC_MLX5_TX_POLICY", &environ);
850+
pthread_mutex_unlock(&mca_spml_ucx.ctx_create_mutex);
851851
}
852852

853853
return rc;

oshmem/mca/spml/ucx/spml_ucx_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void mca_spml_ucx_async_cb(int fd, short event, void *cbdata)
176176

177177
do {
178178
count = ucp_worker_progress(mca_spml_ucx.aux_ctx->ucp_worker);
179-
} while(count);
179+
} while (count);
180180

181181
pthread_spin_unlock(&mca_spml_ucx.async_lock);
182182
}

0 commit comments

Comments
 (0)