Skip to content

Commit e380f8c

Browse files
committed
- fix the delete priority of the ompio component
- some application use MPI_File_delete as a collective function (e.g. IOR), which I think is not really covered by the standard. Right now, one process succeeds and theother ones return an error code. Fix that by not returning no error if the file that we try to delete does not exist anymore, to make these applications work.
1 parent 3fb0614 commit e380f8c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ompi/mca/io/ompio/io_ompio_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int register_component(void)
136136
OPAL_INFO_LVL_9,
137137
MCA_BASE_VAR_SCOPE_READONLY,
138138
&priority_param);
139-
delete_priority_param = 10;
139+
delete_priority_param = 30;
140140
(void) mca_base_component_var_register(&mca_io_ompio_component.io_version,
141141
"delete_priority", "Delete priority of the io ompio component",
142142
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,

ompi/mca/io/ompio/io_ompio_file_open.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,9 @@ int mca_io_ompio_file_delete (char *filename,
394394

395395
ret = unlink(filename);
396396

397-
if (0 > ret) {
398-
return OMPI_ERROR;
397+
if (0 > ret && ENOENT != errno ) {
398+
opal_output (1, "errno = %d %s\n", errno, strerror(errno));
399+
return MPI_ERR_ACCESS;
399400
}
400401

401402
return OMPI_SUCCESS;

0 commit comments

Comments
 (0)