[Darshan-commits] [Git][darshan/darshan][master] 2 commits: apmpi/pydarshan: update the pydarshan to process APMPI records

Sudheer Chunduri xgitlab at cels.anl.gov
Tue Mar 30 18:20:49 CDT 2021



Sudheer Chunduri pushed to branch master at darshan / darshan


Commits:
ba4bc274 by Sudheer Chunduri at 2021-03-30T23:18:37+00:00
apmpi/pydarshan: update the pydarshan to process APMPI records

- - - - -
d813a891 by Sudheer Chunduri at 2021-03-30T23:19:09+00:00
apmpi/pydarshan: update the pydarshan to process APMPI records

- - - - -


3 changed files:

- − darshan-runtime/configure
- − darshan-util/configure
- darshan-util/pydarshan/darshan/report.py


Changes:

=====================================
darshan-runtime/configure deleted
=====================================
The diff for this file was not included because it is too large.

=====================================
darshan-util/configure deleted
=====================================
The diff for this file was not included because it is too large.

=====================================
darshan-util/pydarshan/darshan/report.py
=====================================
@@ -675,35 +675,29 @@ class DarshanReport(object):
         # handling options
         dtype = dtype if dtype else self.dtype
 
-        self.records[mod] = []
+        self.records[mod] = DarshanRecordCollection(mod=mod, report=self)
+
         # update module metadata
-        self.modules[mod]['num_records'] = 0
+        self._modules[mod]['num_records'] = 0
         if mod not in self.counters:
             self.counters[mod] = {}
 
-        # fetch header record
-        header_rec = backend.log_get_apmpi_record(self.log, _structdefs[mod+"-HEADER"])
-        self.records[mod].append(header_rec)
-
         # fetch records
-        rec = backend.log_get_apmpi_record(self.log, _structdefs[mod+"-PERF"])
+        # fetch header record
+        rec = backend.log_get_apmpi_record(self.log, mod, "HEADER", dtype=dtype)
         while rec != None:
-            if dtype == 'numpy':
-                self.records[mod].append(rec)
-            else:
-                self.records[mod].append(rec)
-
+            self.records[mod].append(rec)
             self.data['modules'][mod]['num_records'] += 1
 
             # fetch next
-            rec = backend.log_get_apmpi_record(self.log, _structdefs[mod+"-PERF"])
+            rec = backend.log_get_apmpi_record(self.log, mod, "PERF", dtype=dtype)
 
 
         if self.lookup_name_records:
             self.update_name_records()
-   
-        pass 
- 
+
+        pass
+
     def mod_read_all_dxt_records(self, mod, dtype=None, warnings=True, reads=True, writes=True):
         """
         Reads all dxt records for provided module.



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/59379bfb7d909731e15c43f77d45e915b995472d...d813a891ad03eb53b668976e9b107266eb54b5be

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/compare/59379bfb7d909731e15c43f77d45e915b995472d...d813a891ad03eb53b668976e9b107266eb54b5be
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/20210330/1664c214/attachment-0001.html>


More information about the Darshan-commits mailing list