Struct CudaMemPoolProps
- Namespace
- DotCompute.Backends.CUDA.Types
- Assembly
- DotCompute.Backends.CUDA.dll
Properties for CUDA memory pool configuration.
public struct CudaMemPoolProps : IEquatable<CudaMemPoolProps>
- Implements
- Inherited Members
Properties
AllocationType
Gets or sets the allocation type.
public CudaMemAllocationType AllocationType { readonly get; set; }
Property Value
HandleType
Gets or sets the handle type.
public CudaMemHandleType HandleType { readonly get; set; }
Property Value
Location
Gets or sets the location.
public CudaMemLocation Location { readonly get; set; }
Property Value
Reserved1
Gets or sets the reserved space for future use.
public ulong Reserved1 { readonly get; set; }
Property Value
Reserved2
Gets or sets additional reserved space for future use.
public ulong Reserved2 { readonly get; set; }
Property Value
Reserved3
Gets or sets additional reserved space for future use.
public ulong Reserved3 { readonly get; set; }
Property Value
Reserved4
Gets or sets additional reserved space for future use.
public ulong Reserved4 { readonly get; set; }
Property Value
Reserved5
Gets or sets additional reserved space for future use.
public ulong Reserved5 { readonly get; set; }
Property Value
Reserved6
Gets or sets additional reserved space for future use.
public ulong Reserved6 { readonly get; set; }
Property Value
Reserved7
Gets or sets additional reserved space for future use.
public ulong Reserved7 { readonly get; set; }
Property Value
Reserved8
Gets or sets additional reserved space for future use.
public ulong Reserved8 { readonly get; set; }
Property Value
WinSecurityAttributes
Gets or sets the Windows security attributes (Windows only).
public nint WinSecurityAttributes { readonly get; set; }
Property Value
Methods
CreateDefault()
Creates default memory pool properties.
public static CudaMemPoolProps CreateDefault()
Returns
- CudaMemPoolProps
Default properties.
Equals(CudaMemPoolProps)
Determines whether this instance is equal to another CudaMemPoolProps.
public readonly bool Equals(CudaMemPoolProps other)
Parameters
otherCudaMemPoolPropsThe other instance to compare.
Returns
- bool
True if equal; otherwise, false.
Equals(object?)
Determines whether this instance is equal to another object.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare.
Returns
- bool
True if equal; otherwise, false.
GetHashCode()
Gets the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
The hash code.
Operators
operator ==(CudaMemPoolProps, CudaMemPoolProps)
Determines whether two CudaMemPoolProps instances are equal.
public static bool operator ==(CudaMemPoolProps left, CudaMemPoolProps right)
Parameters
leftCudaMemPoolPropsThe left operand.
rightCudaMemPoolPropsThe right operand.
Returns
- bool
True if equal; otherwise, false.
operator !=(CudaMemPoolProps, CudaMemPoolProps)
Determines whether two CudaMemPoolProps instances are not equal.
public static bool operator !=(CudaMemPoolProps left, CudaMemPoolProps right)
Parameters
leftCudaMemPoolPropsThe left operand.
rightCudaMemPoolPropsThe right operand.
Returns
- bool
True if not equal; otherwise, false.