hpc / mpifileutils

File utilities designed for scalability and performance.
https://hpc.github.io/mpifileutils
BSD 3-Clause "New" or "Revised" License
170 stars 68 forks source link

support 1024 based sizes (e.g. 4MiB) #528

Open daltonbohning opened 2 years ago

daltonbohning commented 2 years ago

For example:

$ dcp --bufsize 4MiB src dst
ERROR: Failed to parse block size: '4MiB'
$ dcp --bufsize 4MB src dst
# Works!
$ dcp --bufsize 4M src dst
# Works!

And it appears the MiB sizes are actually used anyway: https://github.com/hpc/mpifileutils/blob/be4e71548e04cc2c0903938fd1ca85e4cdd07518/src/common/mfu_util.c#L350-L368