Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for mapped/unified memory #612

Open
psychocoderHPC opened this issue Aug 16, 2018 · 3 comments
Open

Support for mapped/unified memory #612

psychocoderHPC opened this issue Aug 16, 2018 · 3 comments
Labels
Backend:CUDA State:Duplicate duplicate issue or pull-request (link main issue!) Type:Enhancement

Comments

@psychocoderHPC
Copy link
Member

It is useful to have in some cases support for mapped/unified memory.
This allows the user to allocated host memory and use this memory directly on the GPU without waisting useful GPU memory.

In CUDA there are two kinds of host memory which can be addressed from the GPU without the need of an explicit memcopy.

A open question is if such a feature is also supported by other platforms like AMD gpus or maybe later FPGs.

@BenjaminW3
Copy link
Member

BenjaminW3 commented Aug 16, 2018

Unified memory already in #296

@BenjaminW3
Copy link
Member

BenjaminW3 commented Aug 16, 2018

Mapping CPU memory into GPU memory space should aready be supported but is untested:
alpaka::mem::buf::map(buffer, targetDevice);
The device pointer can than be accessed via auto ptr = alpaka::mem::view::getPtrDev(buffer, targetDevice).
I do not know if this works.

@ax3l ax3l added Backend:CUDA State:Duplicate duplicate issue or pull-request (link main issue!) labels Aug 17, 2018
@psychocoderHPC
Copy link
Member Author

@BenjaminW3 thx I will have a look into alpaka unified memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend:CUDA State:Duplicate duplicate issue or pull-request (link main issue!) Type:Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants