Skip to content

WIP: Delete file to trigger any "first touch" calls #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/aiori-MPIIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,7 @@ void MPIIO_Delete(char *testFileName, aiori_mod_opt_t * module_options)
mpiio_options_t * param = (mpiio_options_t*) module_options;
if(hints->dryRun)
return;
MPI_CHECKF(MPI_File_delete(testFileName, (MPI_Info) MPI_INFO_NULL),
"cannot delete file: %s", testFileName);
MPI_File_delete(testFileName, (MPI_Info) MPI_INFO_NULL);
}

/*
Expand Down
6 changes: 6 additions & 0 deletions src/ior.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,12 @@ static void TestIoSys(IOR_test_t *test)
}
}

#ifndef IOR_SKIP_DELETE
/* touch the file system to load up any client-side libraries */
GetTestFileName(testFileName, params);
backend->delete(testFileName, params->backend_options);
#endif

for (rep = 0; rep < params->repetitions; rep++) {
/* Get iteration start time in seconds in task 0 and broadcast to
all tasks */
Expand Down