Skip to content

chore: bump amd-hami-core for the limit retry race fix - #146

Merged
moezdil merged 1 commit into
mainfrom
chore/bump-hami-core-retry
Oct 6, 2026
Merged

moezdil merged 1 commit into
mainfrom
chore/bump-hami-core-retry

Conversation

@moezdil

@moezdil moezdil commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

Bumps amd-hami-core to Project-HAMi/amd-hami-core#21. When no memory limit was in the environment, every allocation retried reading one through a helper that reads /proc into one static buffer with realloc, outside the shared region lock, so concurrent allocations raced on it (ThreadSanitizer confirmed). The retry now runs under the lock. #21 also makes the on-GPU test_memory_limit fail when a limit is not enforced. On an RX 9060 XT the rebuilt hook still stops hipMalloc at the limit and grants 6 of 8 concurrent 600 MiB allocations under 4096 MiB.

AI Disclosure:

AI assisted in writing this change.

Picks up Project-HAMi/amd-hami-core#21: with no limit in the environment
the per-allocation retry read /proc into a shared buffer outside the lock.

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
@hami-robot hami-robot Bot added the kind/bug Categorizes issue or PR as related to a bug. label Oct 6, 2026
@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 13b12de6-8394-41bd-ad72-e571c9cac37f
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hami-robot

hami-robot Bot commented Oct 6, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: moezdil

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@moezdil
moezdil merged commit 2c961e6 into main Oct 6, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant