Type Alias CUmemPoolProps

Source
pub type CUmemPoolProps = CUmemPoolProps_v1;
Expand description

Specifies the properties of allocations made from the pool.

Aliased Type§

#[repr(C)]
pub struct CUmemPoolProps { pub allocType: CUmemAllocationType_enum, pub handleTypes: CUmemAllocationHandleType_enum, pub location: CUmemLocation_st, pub win32SecurityAttributes: *mut c_void, pub maxSize: usize, pub usage: u16, pub reserved: [u8; 54], }

Fields§

§allocType: CUmemAllocationType_enum

< Allocation type. Currently must be specified as CU_MEM_ALLOCATION_TYPE_PINNED

§handleTypes: CUmemAllocationHandleType_enum

< Handle types that will be supported by allocations from the pool.

§location: CUmemLocation_st

< Location where allocations should reside.

§win32SecurityAttributes: *mut c_void

Windows-specific LPSECURITYATTRIBUTES required when ::CU_MEM_HANDLE_TYPE_WIN32 is specified. This security attribute defines the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero.

§maxSize: usize

< Maximum pool size. When set to 0, defaults to a system dependent value.

§usage: u16

< Bitmask indicating intended usage for the pool.

§reserved: [u8; 54]

< reserved for future use, must be 0