#[repr(C)]pub struct CUmemPoolProps {
pub alloc_type: u32,
pub handle_types: u32,
pub location: CUmemLocation,
pub win32_security_attributes: *mut c_void,
pub max_size: usize,
pub reserved: [u8; 56],
}Expand description
Properties passed to cuMemPoolCreate.
Mirrors CUmemPoolProps in cuda.h. The trailing reserved field is
part of the public ABI: the CUDA driver expects 56 zero bytes there to
preserve forward compatibility.
Fields§
§alloc_type: u32Allocation type to use when servicing pool requests; see
CUmemAllocationType.
handle_types: u32Bitfield of OS handle types to export; see
CUmemAllocationHandleType.
location: CUmemLocationPhysical location backing the pool.
win32_security_attributes: *mut c_voidWin32 security-attributes pointer; null on non-Windows platforms or when no specific security descriptor is required.
max_size: usizeMaximum aggregate size (bytes) the pool may hold. 0 means
unlimited.
reserved: [u8; 56]Reserved padding required by the CUDA ABI; must remain zeroed.
Trait Implementations§
Source§impl Clone for CUmemPoolProps
impl Clone for CUmemPoolProps
Source§fn clone(&self) -> CUmemPoolProps
fn clone(&self) -> CUmemPoolProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CUmemPoolProps
impl Debug for CUmemPoolProps
Source§impl Default for CUmemPoolProps
impl Default for CUmemPoolProps
Source§impl PartialEq for CUmemPoolProps
impl PartialEq for CUmemPoolProps
Source§fn eq(&self, other: &CUmemPoolProps) -> bool
fn eq(&self, other: &CUmemPoolProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CUmemPoolProps
impl Eq for CUmemPoolProps
impl Send for CUmemPoolProps
impl StructuralPartialEq for CUmemPoolProps
impl Sync for CUmemPoolProps
Auto Trait Implementations§
impl Freeze for CUmemPoolProps
impl RefUnwindSafe for CUmemPoolProps
impl Unpin for CUmemPoolProps
impl UnsafeUnpin for CUmemPoolProps
impl UnwindSafe for CUmemPoolProps
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