Skip to content

Commit c2373fc

Browse files
authored
Merge pull request #5434 from PeterGottesman/pr/v3.0.x/osc-sm-fix
v3.0.x: osc/sm: avoid filename collision when multiple windows share same CID
2 parents 8be3c8c + d038724 commit c2373fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ompi/mca/osc/sm/osc_sm_component.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ component_select(struct ompi_win_t *win, void **base, size_t size, int disp_unit
275275
posts_size += OPAL_ALIGN_PAD_AMOUNT(posts_size, 64);
276276
if (0 == ompi_comm_rank (module->comm)) {
277277
char *data_file;
278-
ret = asprintf (&data_file, "%s" OPAL_PATH_SEP "osc_sm.%s.%x.%d",
279-
mca_osc_sm_component.backing_directory, ompi_process_info.nodename,
280-
OMPI_PROC_MY_NAME->jobid, ompi_comm_get_cid(module->comm));
278+
ret = asprintf (&data_file, "%s" OPAL_PATH_SEP "osc_sm.%s.%x.%d.%d",
279+
mca_osc_sm_component.backing_directory, ompi_process_info.nodename,
280+
OMPI_PROC_MY_NAME->jobid, (int) OMPI_PROC_MY_NAME->vpid, ompi_comm_get_cid(module->comm));
281281
if (ret < 0) {
282282
return OMPI_ERR_OUT_OF_RESOURCE;
283283
}

0 commit comments

Comments
 (0)