-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JNI] rmm based pinned pool (#15219)
Part of #14782. This PR removes our old implementation of the java based pinned memory pool and replaces it with a jni layer on top of `rmm::pool_memory_resource<rmm::pinned_host_memory_resource>` This PR does NOT set the default cuIO pinned host resource. That is happening after this PR goes in #15079. We'll need a follow on PR to change `PinnedMemoryPool.initialize` method to add an argument to set the cuIO pinned host resource. I have run with this and version of it that are shared with cuIO and I can't find regressions in NDS at SF3K. Note that we don't align anymore on our side. RMM is doing the same alignment we were doing before, using `std::max_align_t`. Note also that the rmm pool doesn't have a quick way to find out what the current size is. So we had some tests that were asserting for this, and I have removed the asserts. If we would like to get that back I am happy to work with RMM to figure out how to do that. Authors: - Alessandro Bellina (https://github.com/abellina) Approvers: - Jim Brennan (https://github.com/jbrennan333) URL: #15219
- Loading branch information
Showing
5 changed files
with
108 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.