Skip to content

PyDarshan mod_records fails on LUSTRE records #831

@jesse-r-s-hines

Description

@jesse-r-s-hines

DarshanReport.mod_records throws when loading a LUSTRE module

r = darshan.DarshanReport('sample.darshan')
next(r.mod_records('LUSTRE'))

throws:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/dist-packages/darshan-3.4.0.1-py3.9.egg/darshan/report.py", line 974, in mod_records
    rec = backend.log_get_generic_record(self.log, mod, dtype=dtype)
  File "/usr/local/lib/python3.9/dist-packages/darshan-3.4.0.1-py3.9.egg/darshan/backend/cffi_backend.py", line 354, in log_get_generic_record
    flst = np.copy(np.frombuffer(ffi.buffer(rbuf[0].fcounters), dtype=np.float64))
AttributeError: cdata 'struct darshan_lustre_record *' has no field 'fcounters'

Using backend.log_get_record works, so perhaps just switching DarshanReport.mod_records to use log_get_record instead of log_get_generic_record to make it work for all module types?

I'm running PyDarshan 3.4.0.1. I've attached a sample darshan file that shows the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions