-
Notifications
You must be signed in to change notification settings - Fork 114
switch Buffer -> BufferHandle in PrimitiveArray #5929
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
base: develop
Are you sure you want to change the base?
Conversation
67fabe3 to
5d5797b
Compare
Merging this PR will degrade performance by 66.22%
Performance Changes
Comparing |
|
I wonder if we can remove at lot of these buffer calls from tests? |
|
I don't think there's another way to get the values out now |
Signed-off-by: Andrew Duffy <[email protected]>
cb6f4b0 to
9e2ba3b
Compare
Signed-off-by: Andrew Duffy <[email protected]>
Signed-off-by: Andrew Duffy <[email protected]>
Signed-off-by: Andrew Duffy <[email protected]>
Fleshes out the BufferHandle type more.
I hid the inner enum and introduced some extra methods to build/unwrap BufferHandles.
This removes the
PrimitiveArray::as_slicemethod, replacing it with aninto_buffer::<T>method which may allocate and copy a new buffer (if the handle points to device memory), or else provides a new Buffer pointing to the existing host memory.This PR is large but a lot of it is just adding
&'s and updating test code to use thebuffer!macro