Skip to content

Commit 203d44c

Browse files
ggouaillardethjelmn
authored andcommitted
btl/vader: make the backing file job specific
Since 47fd231 the backing file is now in /dev/shm by default. As a consequence, the backing file name has to include the jobid so more than one job can run at a time. Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit 611d7c2) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 7ae4c29 commit 203d44c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

opal/mca/btl/vader/btl_vader_component.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* Copyright (c) 2010-2017 Los Alamos National Security, LLC.
1616
* All rights reserved.
1717
* Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
18-
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
19-
* Copyright (c) 2014-2016 Research Organization for Information Science
18+
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
19+
* Copyright (c) 2014-2018 Research Organization for Information Science
2020
* and Technology (RIST). All rights reserved.
2121
* $COPYRIGHT$
2222
*
@@ -214,7 +214,7 @@ static int mca_btl_vader_component_register (void)
214214
if (0 == access ("/dev/shm", W_OK)) {
215215
mca_btl_vader_component.backing_directory = "/dev/shm";
216216
} else {
217-
mca_btl_vader_component.backing_directory = opal_process_info.proc_session_dir;
217+
mca_btl_vader_component.backing_directory = opal_process_info.job_session_dir;
218218
}
219219
(void) mca_base_component_var_register (&mca_btl_vader_component.super.btl_version, "backing_directory",
220220
"Directory to place backing files for shared memory communication. "
@@ -504,8 +504,8 @@ static mca_btl_base_module_t **mca_btl_vader_component_init (int *num_btls,
504504
if (MCA_BTL_VADER_XPMEM != mca_btl_vader_component.single_copy_mechanism) {
505505
char *sm_file;
506506

507-
rc = asprintf(&sm_file, "%s" OPAL_PATH_SEP "vader_segment.%s.%d", mca_btl_vader_component.backing_directory,
508-
opal_process_info.nodename, MCA_BTL_VADER_LOCAL_RANK);
507+
rc = asprintf(&sm_file, "%s" OPAL_PATH_SEP "vader_segment.%s.%x.%d", mca_btl_vader_component.backing_directory,
508+
opal_process_info.nodename, OPAL_PROC_MY_NAME.jobid, MCA_BTL_VADER_LOCAL_RANK);
509509
if (0 > rc) {
510510
free (btls);
511511
return NULL;

0 commit comments

Comments
 (0)