Table of Contents

Struct CudaMemRangeAttribute

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

CUDA memory range attributes.

public struct CudaMemRangeAttribute : IEquatable<CudaMemRangeAttribute>
Implements
Inherited Members

Fields

Attribute

The attribute.

public uint Attribute

Field Value

uint

Count

The count.

public nuint Count

Field Value

nuint

Data

The data.

public nint Data

Field Value

nint

DataSize

The data size.

public nuint DataSize

Field Value

nuint

DevPtr

The dev ptr.

public nint DevPtr

Field Value

nint

Methods

Equals(CudaMemRangeAttribute)

Determines whether the specified CudaMemRangeAttribute is equal to the current CudaMemRangeAttribute.

public readonly bool Equals(CudaMemRangeAttribute other)

Parameters

other CudaMemRangeAttribute

The CudaMemRangeAttribute to compare with the current instance.

Returns

bool

true if the specified CudaMemRangeAttribute is equal to the current CudaMemRangeAttribute; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current CudaMemRangeAttribute.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if the specified object is equal to the current CudaMemRangeAttribute; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns

int

A 32-bit signed integer hash code.

Operators

operator ==(CudaMemRangeAttribute, CudaMemRangeAttribute)

Determines whether two specified CudaMemRangeAttribute structures have the same value.

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

Parameters

left CudaMemRangeAttribute

The first CudaMemRangeAttribute to compare.

right CudaMemRangeAttribute

The second CudaMemRangeAttribute to compare.

Returns

bool

true if left and right are equal; otherwise, false.

operator !=(CudaMemRangeAttribute, CudaMemRangeAttribute)

Determines whether two specified CudaMemRangeAttribute structures have different values.

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

Parameters

left CudaMemRangeAttribute

The first CudaMemRangeAttribute to compare.

right CudaMemRangeAttribute

The second CudaMemRangeAttribute to compare.

Returns

bool

true if left and right are not equal; otherwise, false.