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

[Feature] How to register Memory Region on specific memory address? #108

Open
fishiu opened this issue Aug 2, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@fishiu
Copy link

fishiu commented Aug 2, 2023

The API to create MR, i.e. alloc_local_mr(layout) function, only has the option to allocate new memory in an ad-hoc way (use malloc inside the alloc_local_mr function).

Is it possible that I register an existing memory block as MR. As I want to transfer a large block of memory and don't want it to be copied which may cause performance issue. Many thanks in advance!

@GTwhy
Copy link
Collaborator

GTwhy commented Aug 3, 2023

Hi @fishiu . This seems to be a useful feature, and currently we do not provide the corresponding interface. In such a scenario, we cannot guarantee the safety of pre-allocated memory, so we may provide some unsafe interfaces and manage this memory separately.

@GTwhy GTwhy added the enhancement New feature or request label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants