Skip to content

Commit 49e84d0

Browse files
authored
Merge pull request #8808 from rhc54/topic/sm
Add the userid to the sm backing file path
2 parents 40dcd19 + b95b1b4 commit 49e84d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opal/mca/btl/sm/btl_sm_component.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Copyright (c) 2018 Triad National Security, LLC. All rights
2323
* reserved.
2424
* Copyright (c) 2019-2020 Google, Inc. All rights reserved.
25+
* Copyright (c) 2021 Nanook Consulting. All rights reserved.
2526
* $COPYRIGHT$
2627
*
2728
* Additional copyrights may follow
@@ -546,9 +547,9 @@ mca_btl_sm_component_init(int *num_btls, bool enable_progress_threads, bool enab
546547
if (MCA_BTL_SM_XPMEM != mca_btl_sm_component.single_copy_mechanism) {
547548
char *sm_file;
548549

549-
rc = opal_asprintf(&sm_file, "%s" OPAL_PATH_SEP "sm_segment.%s.%x.%d",
550+
rc = opal_asprintf(&sm_file, "%s" OPAL_PATH_SEP "sm_segment.%s.%u.%x.%d",
550551
mca_btl_sm_component.backing_directory, opal_process_info.nodename,
551-
OPAL_PROC_MY_NAME.jobid, MCA_BTL_SM_LOCAL_RANK);
552+
geteuid(), OPAL_PROC_MY_NAME.jobid, MCA_BTL_SM_LOCAL_RANK);
552553
if (0 > rc) {
553554
free(btls);
554555
return NULL;

0 commit comments

Comments
 (0)