Skip to content

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

Open
davschneller wants to merge 1 commit intomasterfrom
davschneller/coarse-grained-managed-alloc
Open

Switch to coarse-grained managed HIP allocations by default#63
davschneller wants to merge 1 commit intomasterfrom
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.

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