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

memory: Add safe_host_allocator and deprecate safe_pinned_host_allocator #36

Merged
merged 1 commit into from
Nov 30, 2019

Conversation

stotko
Copy link
Owner

@stotko stotko commented Nov 30, 2019

The host memory allocator class called safe_pinned_host_allocator suggests that memory will always be pinned. Since there is an OpenMP backend now, this does not hold anymore and is more of an implementation detail anyways. Furthermore, this is inconsistent with the device (safe_device_allocator) and managed (safe_managed_allocator) variants. Rename it to safe_host_allocator and keep the old version (marked as deprecated) to maintain compatibility.

@stotko
Copy link
Owner Author

stotko commented Nov 30, 2019

Build failure is unrelated to the changes. Thus, ready to merge.

@stotko stotko merged commit 09b9f9c into master Nov 30, 2019
@stotko stotko deleted the memory_host_allocator branch November 30, 2019 21:04
@stotko stotko mentioned this pull request Dec 1, 2019
2 tasks
@stotko stotko added this to the 1.2.0 milestone Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant