We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would really like it if one could construct a CudaViewMut and CudaViewMut
CudaViewMut
Like how one does for std::slice::from_raw_parts
pub unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T]
Use case is creating a non owning safe View type.
Implementations
impl<'a, T> CudaViewMut<'a, T> { pub const unsafe fn from_raw_parts(ptr: sys::CUdeviceptr, len: usize) -> Self { Self { ptr, len, marker: PhantomData, } } } impl<'a, T> CudaView<'a, T> { pub const unsafe fn from_raw_parts(ptr: sys::CUdeviceptr, len: usize) -> Self { Self { ptr, len, marker: PhantomData, } } }
Please define in the docs if the len is in bytes or if its in elements.
len
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would really like it if one could construct a
CudaViewMut
andCudaViewMut
Like how one does for std::slice::from_raw_parts
Use case is creating a non owning safe View type.
Implementations
Please define in the docs if the
len
is in bytes or if its in elements.The text was updated successfully, but these errors were encountered: