Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: update PyDarshan docs/examples to use context manager for report objects #859

Open
shanedsnyder opened this issue Nov 30, 2022 · 0 comments

Comments

@shanedsnyder
Copy link
Contributor

See #851 for original issue and #858 for solution.

Long story short, it seems that using a context manager (i.e., with darshan.DarshanReport(log_path) as report:) for report objects helps avoid potential memory/threading issues when releasing them. This ultimately was causing some of our pytest runs to hang in various contexts.

We should update our docs and various examples to use this approach for managing report objects so users don't get potentially bitten by this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants