[Darshan-commits] [Git][darshan/darshan][master] 2 commits: only call hyperslab fns on hyperslab selections

Shane Snyder xgitlab at cels.anl.gov
Fri Apr 23 13:13:03 CDT 2021



Shane Snyder pushed to branch master at darshan / darshan


Commits:
39dce232 by Shane Snyder at 2021-04-22T22:10:51+00:00
only call hyperslab fns on hyperslab selections

- - - - -
5b596ed1 by Shane Snyder at 2021-04-23T13:13:00-05:00
Merge branch 'snyder/dev-issue315-hdf5-selections' into 'master'

only call HDF5 hyperslab functions on hyperslab selections

Closes #315

See merge request darshan/darshan!107
- - - - -


1 changed file:

- darshan-runtime/lib/darshan-hdf5.c


Changes:

=====================================
darshan-runtime/lib/darshan-hdf5.c
=====================================
@@ -654,7 +654,7 @@ herr_t DARSHAN_DECL(H5Dread)(hid_t dataset_id, hid_t mem_type_id, hid_t mem_spac
                 rec_ref->dataset_rec->counters[H5D_REGULAR_HYPERSLAB_SELECTS] += 1;
             else if(file_sel_type == H5S_SEL_POINTS)
                 rec_ref->dataset_rec->counters[H5D_POINT_SELECTS] += 1;
-            else
+            else if (file_sel_type == H5S_SEL_HYPERSLABS)
             {
                 if(H5Sis_regular_hyperslab(file_space_id))
                 {
@@ -775,7 +775,7 @@ herr_t DARSHAN_DECL(H5Dwrite)(hid_t dataset_id, hid_t mem_type_id, hid_t mem_spa
                 rec_ref->dataset_rec->counters[H5D_REGULAR_HYPERSLAB_SELECTS] += 1;
             else if(file_sel_type == H5S_SEL_POINTS)
                 rec_ref->dataset_rec->counters[H5D_POINT_SELECTS] += 1;
-            else
+            else if (file_sel_type == H5S_SEL_HYPERSLABS)
             {
                 if(H5Sis_regular_hyperslab(file_space_id))
                 {



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/141e2fa6a11285eb19e1fc91d38cfd756090f8a6...5b596ed12c746a059fb198eb0779f64f4ca78f4c

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/141e2fa6a11285eb19e1fc91d38cfd756090f8a6...5b596ed12c746a059fb198eb0779f64f4ca78f4c
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/20210423/fd75f5d4/attachment-0001.html>


More information about the Darshan-commits mailing list