Table of Contents

Struct CudaMemLocation

Namespace
DotCompute.Backends.CUDA.Types
Assembly
DotCompute.Backends.CUDA.dll

CUDA memory location.

public struct CudaMemLocation : IEquatable<CudaMemLocation>
Implements
Inherited Members

Properties

Id

Gets or sets the device or CPU ID.

public int Id { readonly get; set; }

Property Value

int

Type

Gets or sets the location type.

public CudaMemLocationType Type { readonly get; set; }

Property Value

CudaMemLocationType

Methods

Equals(CudaMemLocation)

Determines whether this instance is equal to another CudaMemLocation.

public readonly bool Equals(CudaMemLocation other)

Parameters

other CudaMemLocation

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 ==(CudaMemLocation, CudaMemLocation)

Determines whether two CudaMemLocation instances are equal.

public static bool operator ==(CudaMemLocation left, CudaMemLocation right)

Parameters

left CudaMemLocation

The left operand.

right CudaMemLocation

The right operand.

Returns

bool

True if equal; otherwise, false.

operator !=(CudaMemLocation, CudaMemLocation)

Determines whether two CudaMemLocation instances are not equal.

public static bool operator !=(CudaMemLocation left, CudaMemLocation right)

Parameters

left CudaMemLocation

The left operand.

right CudaMemLocation

The right operand.

Returns

bool

True if not equal; otherwise, false.