#[repr(C)]pub struct cudaMemPoolProps {
pub allocType: cudaMemAllocationType,
pub handleTypes: cudaMemAllocationHandleType,
pub location: cudaMemLocation,
pub win32SecurityAttributes: *mut c_void,
pub maxSize: usize,
pub usage: c_ushort,
pub reserved: [c_uchar; 54],
}
Expand description
Specifies the properties of allocations made from the pool.
Fields§
§allocType: cudaMemAllocationType
< Allocation type. Currently must be specified as cudaMemAllocationTypePinned
handleTypes: cudaMemAllocationHandleType
< Handle types that will be supported by allocations from the pool.
location: cudaMemLocation
< Location allocations should reside.
win32SecurityAttributes: *mut c_void
Windows-specific LPSECURITYATTRIBUTES required when ::cudaMemHandleTypeWin32 is specified. This security attribute defines the scope of which exported allocations may be tranferred 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: c_ushort
< Bitmask indicating intended usage for the pool.
reserved: [c_uchar; 54]
< reserved for future use, must be 0
Trait Implementations§
Source§impl Clone for cudaMemPoolProps
impl Clone for cudaMemPoolProps
Source§fn clone(&self) -> cudaMemPoolProps
fn clone(&self) -> cudaMemPoolProps
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 moreSource§impl Debug for cudaMemPoolProps
impl Debug for cudaMemPoolProps
impl Copy for cudaMemPoolProps
Auto Trait Implementations§
impl Freeze for cudaMemPoolProps
impl RefUnwindSafe for cudaMemPoolProps
impl !Send for cudaMemPoolProps
impl !Sync for cudaMemPoolProps
impl Unpin for cudaMemPoolProps
impl UnwindSafe for cudaMemPoolProps
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