#[repr(C)]pub struct CUmemAllocationProp_st__bindgen_ty_1 {
pub compressionType: c_uchar,
pub gpuDirectRDMACapable: c_uchar,
pub usage: c_ushort,
pub reserved: [c_uchar; 4],
}
Fields§
§compressionType: c_uchar
Allocation hint for requesting compressible memory. On devices that support Compute Data Compression, compressible memory can be used to accelerate accesses to data with unstructured sparsity and other compressible data patterns. Applications are expected to query allocation property of the handle obtained with ::cuMemCreate using ::cuMemGetAllocationPropertiesFromHandle to validate if the obtained allocation is compressible or not. Note that compressed memory may not be mappable on all devices.
gpuDirectRDMACapable: c_uchar
§usage: c_ushort
Bitmask indicating intended usage for this allocation
reserved: [c_uchar; 4]
Trait Implementations§
Source§impl Clone for CUmemAllocationProp_st__bindgen_ty_1
impl Clone for CUmemAllocationProp_st__bindgen_ty_1
Source§fn clone(&self) -> CUmemAllocationProp_st__bindgen_ty_1
fn clone(&self) -> CUmemAllocationProp_st__bindgen_ty_1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for CUmemAllocationProp_st__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for CUmemAllocationProp_st__bindgen_ty_1
impl RefUnwindSafe for CUmemAllocationProp_st__bindgen_ty_1
impl Send for CUmemAllocationProp_st__bindgen_ty_1
impl Sync for CUmemAllocationProp_st__bindgen_ty_1
impl Unpin for CUmemAllocationProp_st__bindgen_ty_1
impl UnwindSafe for CUmemAllocationProp_st__bindgen_ty_1
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