procs[proc]->proc_name.vpid is a size_t, so try to cast it before using sprintf.
This commit was SVN r7304.
Этот коммит содержится в:
родитель
f8d9f6121c
Коммит
f0e4cacd4d
@ -183,8 +183,8 @@ int mca_ptl_sm_add_procs_same_base_addr(
|
||||
mca_ptl_sm_component.num_smp_procs;
|
||||
|
||||
#if OMPI_ENABLE_PROGRESS_THREADS == 1
|
||||
sprintf(path, "%s/sm_fifo.%d", orte_process_info.job_session_dir,
|
||||
procs[proc]->proc_name.vpid);
|
||||
sprintf(path, "%s/sm_fifo.%lu", orte_process_info.job_session_dir,
|
||||
(unsigned long)procs[proc]->proc_name.vpid);
|
||||
peer->fifo_fd = open(path, O_WRONLY);
|
||||
if(peer->fifo_fd < 0) {
|
||||
opal_output(0, "mca_ptl_sm_add_procs: open(%s) failed with errno=%d\n", path, errno);
|
||||
|
@ -247,8 +247,8 @@ mca_ptl_base_module_t** mca_ptl_sm_component_init(
|
||||
#if OMPI_ENABLE_PROGRESS_THREADS == 1
|
||||
/* create a named pipe to receive events */
|
||||
sprintf(mca_ptl_sm_component.sm_fifo_path,
|
||||
"%s/sm_fifo.%d", orte_process_info.job_session_dir,
|
||||
orte_process_info.my_name->vpid);
|
||||
"%s/sm_fifo.%lu", orte_process_info.job_session_dir,
|
||||
(unsigned long)orte_process_info.my_name->vpid);
|
||||
if(mkfifo(mca_ptl_sm_component.sm_fifo_path, 0660) < 0) {
|
||||
opal_output(0, "mca_ptl_sm_component_init: mkfifo failed with errno=%d\n",errno);
|
||||
return NULL;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user