[Darshan-commits] [Git][darshan/darshan][dev-h5d-file-rec-counter] 2 commits: make sure to byteswap new counter
Shane Snyder
xgitlab at cels.anl.gov
Thu Mar 25 21:44:04 CDT 2021
Shane Snyder pushed to branch dev-h5d-file-rec-counter at darshan / darshan
Commits:
cf1cca11 by Shane Snyder at 2021-03-25T21:42:41-05:00
make sure to byteswap new counter
- - - - -
a8b7a58c by Shane Snyder at 2021-03-25T21:42:45-05:00
update pydarshan hdf5 dataset record size
- - - - -
2 changed files:
- darshan-util/darshan-hdf5-logutils.c
- darshan-util/pydarshan/darshan/backend/api_def_c.py
Changes:
=====================================
darshan-util/darshan-hdf5-logutils.c
=====================================
@@ -293,6 +293,11 @@ exit:
{
DARSHAN_BSWAP64(&(ds->base_rec.id));
DARSHAN_BSWAP64(&(ds->base_rec.rank));
+ /* skip counters we explicitly set to 0 since they don't
+ * need to be byte swapped
+ */
+ if(fd->mod_ver[DARSHAN_H5F_MOD] >= 2)
+ DARSHAN_BSWAP64(&ds->file_rec_id);
for(i=0; i<H5D_NUM_INDICES; i++)
DARSHAN_BSWAP64(&ds->counters[i]);
for(i=0; i<H5D_F_NUM_INDICES; i++)
=====================================
darshan-util/pydarshan/darshan/backend/api_def_c.py
=====================================
@@ -78,6 +78,7 @@ struct darshan_hdf5_file
struct darshan_hdf5_dataset
{
struct darshan_base_record base_rec;
+ uint64_t file_rec_id;
int64_t counters[94];
double fcounters[17];
};
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/99abaecb5eab01ec76ea5d2b1f11cfe032f737d2...a8b7a58c9135777b25edd83580274507516a2bfd
--
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/99abaecb5eab01ec76ea5d2b1f11cfe032f737d2...a8b7a58c9135777b25edd83580274507516a2bfd
You're receiving this email because of your account on xgitlab.cels.anl.gov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20210325/3a51041c/attachment.html>
More information about the Darshan-commits
mailing list