-
Notifications
You must be signed in to change notification settings - Fork 68
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
Tweak dstripe so that it renames target file to source file after copy #38
Comments
dinatale2
added a commit
to dinatale2/mpifileutils
that referenced
this issue
Feb 8, 2017
No longer require the user to provide an output file path. Introduce an optional flag which allows the user to provide a different output file path. Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Close hpc#38
dinatale2
added a commit
to dinatale2/mpifileutils
that referenced
this issue
Feb 8, 2017
No longer require the user to provide an output file path. Introduce an optional flag which allows the user to provide a different output file path. Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Close hpc#38
@adammoody I just realized that there are mfu functions for operations such as deleting a file. I'll go back and use those instead and I'll add new mfu functions for the operations that don't exist. |
dinatale2
added a commit
to dinatale2/mpifileutils
that referenced
this issue
Feb 8, 2017
No longer require the user to provide an output file path. Introduce an optional flag which allows the user to provide a different output file path. Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Close hpc#38
Updated dstripe to use mfu functions where appropriate. Let me know if you notice anything else that needs to change. I can also open a pull request if you'd like to do a formal review. |
Hi Joe,
This looks good. There may be one MPI-related bug. I see you use rank 0 to generate the temp name for the destination file, and I see you're bcasting the temporary name. However, it looks like the bcast is inside of an if statement that only rank 0 calls, so the other procs will not see the file name. You'll want to move this bcast outside of the if block. Let's break this into two sections, one if block where rank 0 computes the name, then a global region to bcast the name, then another if block where rank 0 creates the file.
Go ahead and open a pull request.
Thanks!
-Adam
…________________________________________
From: Giuseppe Di Natale <notifications@github.com>
Sent: Wednesday, February 8, 2017 11:02:43 AM
To: hpc/mpifileutils
Cc: Moody, Adam T.; Mention
Subject: Re: [hpc/mpifileutils] Tweak dstripe so that it renames target file to source file after copy (#38)
Updated dstripe to use mfu functions where appropriate. Let me know if you notice anything else that needs to change. I can also open a pull request if you'd like to do a formal review.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#38 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABDfTjFwEx3mrz21J60K3VA38Vhe2ircks5rahFTgaJpZM4LvGdR>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the user must provide a temporary name, delete the source, and then rename the target after restriping a file. It would be nice to do this automatically, and this kind of feature will be especially useful when recursively restriping files in a directory tree.
The text was updated successfully, but these errors were encountered: