Skip to content
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

Automatically delete rendezvous files after a run #300

Closed
wants to merge 1 commit into from

Conversation

sofong5
Copy link
Contributor

@sofong5 sofong5 commented Mar 16, 2021

Summary:
The purpose of this diff is to automatically delete rendezvous files after the benchmark is done running. This way, the user does not have to manually delete the files in order to run the benchmark again. This is only relevant when the user uses FileStore to rendezvous (not Redis or MPI).

FileStore::set takes in a key and generates a file based on the hash of this key. Added a new class variable FileStore::rdzvFilePaths which will store these paths. After calling Context::connectFullMesh, these paths will have been generated and we can call FileStore::getRdzvFilePaths to get the paths to delete at the end of the run.

Change Summary:

  • Remove comments about deleting files
  • Add rdzvFilePaths_ to Runner
  • Add rdzvFilePaths and getRdzvFilePaths to FileStore

Differential Revision: D27028023

@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D27028023

)

Summary:
Pull Request resolved: facebookincubator#300

The purpose of this diff is to automatically delete rendezvous files after the benchmark is done running. This way, the user does not have to manually delete the files in order to run the benchmark again. This is only relevant when the user uses `FileStore` to rendezvous (not Redis or MPI).

`FileStore::set` takes in a key and generates a file based on the hash of this key. Added a new class variable `FileStore::rdzvFilePaths` which will store these paths. After calling `Context::connectFullMesh`, these paths will have been generated and we can call `FileStore::getRdzvFilePaths` to get the paths to delete at the end of the run.

Change Summary:
- Remove comments about deleting files
- Add `rdzvFilePaths_` to `Runner`
- Add `rdzvFilePaths` and `getRdzvFilePaths` to `FileStore`

Reviewed By: osalpekar

Differential Revision: D27028023

fbshipit-source-id: ada46990b8e8ae70d6dcd8c815ef1cd8cfc6d686
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D27028023

@facebook-github-bot
Copy link

This pull request has been merged in 1b62018.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants