Table of Contents

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

CudaMemAllocationType

HandleType

Gets or sets the handle type.

public CudaMemHandleType HandleType { readonly get; set; }

Property Value

CudaMemHandleType

Location

Gets or sets the location.

public CudaMemLocation Location { readonly get; set; }

Property Value

CudaMemLocation

Reserved1

Gets or sets the reserved space for future use.

public ulong Reserved1 { readonly get; set; }

Property Value

ulong

Reserved2

Gets or sets additional reserved space for future use.

public ulong Reserved2 { readonly get; set; }

Property Value

ulong

Reserved3

Gets or sets additional reserved space for future use.

public ulong Reserved3 { readonly get; set; }

Property Value

ulong

Reserved4

Gets or sets additional reserved space for future use.

public ulong Reserved4 { readonly get; set; }

Property Value

ulong

Reserved5

Gets or sets additional reserved space for future use.

public ulong Reserved5 { readonly get; set; }

Property Value

ulong

Reserved6

Gets or sets additional reserved space for future use.

public ulong Reserved6 { readonly get; set; }

Property Value

ulong

Reserved7

Gets or sets additional reserved space for future use.

public ulong Reserved7 { readonly get; set; }

Property Value

ulong

Reserved8

Gets or sets additional reserved space for future use.

public ulong Reserved8 { readonly get; set; }

Property Value

ulong

WinSecurityAttributes

Gets or sets the Windows security attributes (Windows only).

public nint WinSecurityAttributes { readonly get; set; }

Property Value

nint

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

other CudaMemPoolProps

The 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

obj object

The 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

left CudaMemPoolProps

The left operand.

right CudaMemPoolProps

The 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

left CudaMemPoolProps

The left operand.

right CudaMemPoolProps

The right operand.

Returns

bool

True if not equal; otherwise, false.