Skip to content

Commit

Permalink
more mpe logging
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 14, 2019
1 parent bcbfecc commit e8efdb4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/clib/pioc_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -1888,6 +1888,12 @@ PIOc_createfile_int(int iosysid, int *ncidp, int *iotype, const char *filename,
int mpierr = MPI_SUCCESS, mpierr2; /* Return code from MPI function codes. */
int ierr; /* Return code from function calls. */

#ifdef USE_MPE
if ((ierr = MPE_Log_event(event_num[START][CREATE], 0,
"PIOc_createfile_int")))
return pio_err(NULL, NULL, PIO_EIO, __FILE__, __LINE__);
#endif /* USE_MPE */

/* Get the IO system info from the iosysid. */
if (!(ios = pio_get_iosystem_from_id(iosysid)))
return pio_err(NULL, NULL, PIO_EBADID, __FILE__, __LINE__);
Expand Down Expand Up @@ -2029,6 +2035,11 @@ PIOc_createfile_int(int iosysid, int *ncidp, int *iotype, const char *filename,
* open files. */
pio_add_to_file_list(file);

#ifdef USE_MPE
if ((ierr = MPE_Log_event(event_num[END][CREATE], 0,
"PIOc_createfile_int")))
return pio_err(NULL, file, PIO_EIO, __FILE__, __LINE__);
#endif /* USE_MPE */
LOG((2, "Created file %s file->fh = %d file->pio_ncid = %d", filename,
file->fh, file->pio_ncid));

Expand Down

0 comments on commit e8efdb4

Please sign in to comment.