1
1

add the ompi_file_t pointer correctly on the ompio file handle for the sm and individual component.

Этот коммит содержится в:
Edgar Gabriel 2015-08-05 14:28:27 -05:00
родитель 3d1780f1a2
Коммит 02a4eb2f13
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -54,6 +54,7 @@ int mca_sharedfp_individual_file_open (struct ompi_communicator_t *comm,
opal_output(0, "mca_sharedfp_individual_file_open: Error during file open\n"); opal_output(0, "mca_sharedfp_individual_file_open: Error during file open\n");
return err; return err;
} }
shfileHandle->f_fh = fh->f_fh;
sh = (struct mca_sharedfp_base_data_t*) malloc ( sizeof(struct mca_sharedfp_base_data_t)); sh = (struct mca_sharedfp_base_data_t*) malloc ( sizeof(struct mca_sharedfp_base_data_t));
if ( NULL == sh ){ if ( NULL == sh ){

Просмотреть файл

@ -69,6 +69,7 @@ int mca_sharedfp_sm_file_open (struct ompi_communicator_t *comm,
opal_output(0, "mca_sharedfp_sm_file_open: Error during file open\n"); opal_output(0, "mca_sharedfp_sm_file_open: Error during file open\n");
return err; return err;
} }
shfileHandle->f_fh = fh->f_fh;
/*Memory is allocated here for the sh structure*/ /*Memory is allocated here for the sh structure*/
if ( mca_sharedfp_sm_verbose ) { if ( mca_sharedfp_sm_verbose ) {