Skip to content

Switch to coarse-grained managed HIP allocations by default#63

Merged
davschneller merged 1 commit into
masterfrom
davschneller/coarse-grained-managed-alloc
May 18, 2026
Merged

Switch to coarse-grained managed HIP allocations by default#63
davschneller merged 1 commit into
masterfrom
davschneller/coarse-grained-managed-alloc

Conversation

@davschneller
Copy link
Copy Markdown
Contributor

Make "unsafe" atomic operations work (as used on gfx90a or some RDNA cards) with managed memory; like they would work with extra "device" memory.
Comes at the downside that the data is only "properly" visible after some synchronization; which should always be ensured in our case right now (i.e. accessing the data only when no kernel is running).

Copy link
Copy Markdown
Contributor

@vikaskurapati vikaskurapati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have an AMD device to test this right now. But LGTM.

@davschneller davschneller merged commit 7d17893 into master May 18, 2026
17 checks passed
@davschneller davschneller deleted the davschneller/coarse-grained-managed-alloc branch May 18, 2026 19:44
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.

2 participants