pub struct CudaArray {
pub ptr: CUdeviceptr,
pub len: usize,
}Expand description
Representation of GPU based cuda array.
Does not delete array on drop.
Fields§
§ptr: CUdeviceptr§len: usizeTrait Implementations§
Source§impl From<Buffer> for CudaArray
Available on crate feature gpu only.
impl From<Buffer> for CudaArray
Available on crate feature
gpu only.Buffer destructor will not be invoked so data will be safe.
Source§impl From<CudaArray> for Buffer
Available on crate feature gpu only.Create GPU buffers of DataType::Uint8 from CudaArray.
Result memory type will be MemoryType::Gpu.
impl From<CudaArray> for Buffer
Available on crate feature
gpu only.Create GPU buffers of DataType::Uint8 from CudaArray. Result memory type will be MemoryType::Gpu.
Note that nothing is allocated on this call, meaning that result buffer will just point on data provided by argument.
Auto Trait Implementations§
impl Freeze for CudaArray
impl RefUnwindSafe for CudaArray
impl Send for CudaArray
impl Sync for CudaArray
impl Unpin for CudaArray
impl UnwindSafe for CudaArray
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more