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
Type
Gets or sets the location type.
public CudaMemLocationType Type { readonly get; set; }
Property Value
Methods
Equals(CudaMemLocation)
Determines whether this instance is equal to another CudaMemLocation.
public readonly bool Equals(CudaMemLocation other)
Parameters
otherCudaMemLocationThe 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 ==(CudaMemLocation, CudaMemLocation)
Determines whether two CudaMemLocation instances are equal.
public static bool operator ==(CudaMemLocation left, CudaMemLocation right)
Parameters
leftCudaMemLocationThe left operand.
rightCudaMemLocationThe 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
leftCudaMemLocationThe left operand.
rightCudaMemLocationThe right operand.
Returns
- bool
True if not equal; otherwise, false.