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
Count
The count.
public nuint Count
Field Value
Data
The data.
public nint Data
Field Value
DataSize
The data size.
public nuint DataSize
Field Value
DevPtr
The dev ptr.
public nint DevPtr
Field Value
Methods
Equals(CudaMemRangeAttribute)
Determines whether the specified CudaMemRangeAttribute is equal to the current CudaMemRangeAttribute.
public readonly bool Equals(CudaMemRangeAttribute other)
Parameters
otherCudaMemRangeAttributeThe 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
objobjectThe 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
leftCudaMemRangeAttributeThe first CudaMemRangeAttribute to compare.
rightCudaMemRangeAttributeThe 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
leftCudaMemRangeAttributeThe first CudaMemRangeAttribute to compare.
rightCudaMemRangeAttributeThe second CudaMemRangeAttribute to compare.
Returns
- bool
true if left and right are not equal; otherwise, false.