Skip to content

Conversation

@artv3
Copy link
Member

@artv3 artv3 commented Apr 14, 2025

Summary

This PR introduces the concept of a memory arena of launch. The underlying idea is to allow users to allocate static shared memory (or could be an external memory type?) and manage it through a bump style allocator.

This PR is a work in progress.

@artv3 artv3 requested a review from YohannDudouit April 14, 2025 06:44
@artv3 artv3 self-assigned this Apr 14, 2025
@artv3 artv3 marked this pull request as draft April 14, 2025 06:45
@artv3
Copy link
Member Author

artv3 commented Apr 14, 2025

@YohannDudouit , I'm thinking the shared memory arena that we talked about could look be implemented something like this? At the moment I'm not sure how we can differentiate between static or dynamically allocated shared memory. What do you think?

@artv3 artv3 requested a review from tomstitt April 14, 2025 06:46
@artv3
Copy link
Member Author

artv3 commented Apr 14, 2025

@tomstitt , adding you in the loop since I think we talked about this as well.


// TODO handle alignment
template<typename T>
RAJA_HOST_DEVICE T* getArenaMemory(size_t bytes)

Choose a reason for hiding this comment

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

I don't think bytes reflects well how this is used, it seems to be a number of values, not a number of bytes.

Co-authored-by: Yohann <yohann.dudouit@gmail.com>
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.

3 participants