Skip to content

Commit d25cc39

Browse files
authored
Merge pull request #9495 from wzamazon/osc_rdma_fix_shm_file_name
osc/rdma: add local leader's pid in shm file name to make it unique
2 parents d5cd796 + 9bcc823 commit d25cc39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,9 @@ static int allocate_state_shared (ompi_osc_rdma_module_t *module, void **base, s
650650

651651
if (0 == local_rank) {
652652
/* allocate the shared memory segment */
653-
ret = opal_asprintf (&data_file, "%s" OPAL_PATH_SEP "osc_rdma.%s.%x.%d",
653+
ret = opal_asprintf (&data_file, "%s" OPAL_PATH_SEP "osc_rdma.%s.%x.%d.%d",
654654
mca_osc_rdma_component.backing_directory, ompi_process_info.nodename,
655-
OMPI_PROC_MY_NAME->jobid, ompi_comm_get_cid(module->comm));
655+
OMPI_PROC_MY_NAME->jobid, ompi_comm_get_cid(module->comm), getpid());
656656
if (0 > ret) {
657657
ret = OMPI_ERR_OUT_OF_RESOURCE;
658658
} else {

0 commit comments

Comments
 (0)