Skip to content

fix: upgrade libamdgpu_top to 0.11.5 to fix AMD GPU file descriptor leak#219

Merged
inureyes merged 2 commits into
lablup:mainfrom
joshhansen:main
May 24, 2026
Merged

fix: upgrade libamdgpu_top to 0.11.5 to fix AMD GPU file descriptor leak#219
inureyes merged 2 commits into
lablup:mainfrom
joshhansen:main

Conversation

@joshhansen

@joshhansen joshhansen commented May 18, 2026

Copy link
Copy Markdown
Contributor

As reported in my issue Umio-Yasuno/amdgpu_top#163 libamdgpu_top has a file descriptor leak that's fixed in their 0.11.5 now released.

This PR unpins libamdgpu_top and brings it up to 0.11.5. I confirmed with my bug repro repository that this change resolves the FD leak coming from all-smi.


Maintainer note: merged with libamdgpu_top kept exact-pinned at =0.11.5 (rather than unpinned to a caret range) to preserve the semver-break protection added in #207 — this crate has renamed public APIs in patch releases before. See the review comment for details.

Closes #218

@cla-assistant

cla-assistant Bot commented May 18, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ inureyes
❌ Josh Hansen


Josh Hansen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@joshhansen

Copy link
Copy Markdown
Contributor Author

I assign the copyright to this minor PR to you but I do not sign that extensive multi-lingual contributor agreement

The crate has shipped semver-violating breaking changes in patch releases
(0.11.4 renamed get_all_proc_usage → update_proc_usage, lablup#205), so pin the
fd-leak fix exactly rather than via a caret range to avoid a future 0.11.6
silently breaking Linux glibc builds. Restores the rationale comment dropped
in this PR.
@inureyes inureyes changed the title Unpin libamdgpu_top and upgrade to 0.11.5 to resolve file descriptor leak fix: upgrade libamdgpu_top to 0.11.5 to fix AMD GPU file descriptor leak May 24, 2026
@inureyes

Copy link
Copy Markdown
Member

Thanks for tracking this down to the root cause and verifying the fix against your reproduction repo — much appreciated, and thanks as well for the copyright-assignment note above.

Before merging I pushed one small commit to this branch that keeps the dependency exact-pinned at =0.11.5 (rather than the caret 0.11.5) and restores the explanatory comment above the dependency. Context for why:

In #207 (which closed #205) we exact-pinned libamdgpu_top specifically because this crate has shipped semver-violating breaking changes in patch releases — 0.11.4 renamed the public get_all_proc_usageupdate_proc_usage in a patch bump, which broke every Linux glibc build on fresh installs through Cargo's caret resolution. A caret requirement (0.11.5) would allow a future 0.11.6 to be selected automatically and re-introduce that risk. Pinning to =0.11.5 keeps your fd-leak fix while preserving that protection; we re-evaluate the exact version on each intentional bump.

I also added Closes #218 to the description so the merge resolves the tracking issue, and I'll squash-merge. Thanks again for the contribution!

@inureyes inureyes merged commit 6d39ad1 into lablup:main May 24, 2026
1 check was pending
@joshhansen

Copy link
Copy Markdown
Contributor Author

Makes sense - thanks for the quick merge!

@inureyes inureyes self-assigned this May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AMD GPU readers leak a file descriptor per instantiation on Linux (fixed in libamdgpu_top 0.11.5)

2 participants