Struct MPSCapabilities
- Namespace
- DotCompute.Backends.Metal.MPS
- Assembly
- DotCompute.Backends.Metal.dll
Capabilities supported by Metal Performance Shaders on the current device.
public readonly struct MPSCapabilities : IEquatable<MPSCapabilities>
- Implements
- Inherited Members
Fields
GPUFamilyVersion
Metal GPU family version (e.g., 7 for Apple7/M1, 8 for Apple8/M2)
public readonly int GPUFamilyVersion
Field Value
SupportsBLAS
Supports BLAS operations (matrix multiply, GEMM, etc.)
public readonly byte SupportsBLAS
Field Value
SupportsCNN
Supports CNN operations (convolution, pooling, etc.)
public readonly byte SupportsCNN
Field Value
SupportsNeuralNetwork
Supports neural network primitives (activation, batch norm, etc.)
public readonly byte SupportsNeuralNetwork
Field Value
Properties
GPUFamily
public string GPUFamily { get; }
Property Value
HasBLAS
public bool HasBLAS { get; }
Property Value
HasCNN
public bool HasCNN { get; }
Property Value
HasNeuralNetwork
public bool HasNeuralNetwork { get; }
Property Value
Methods
Equals(MPSCapabilities)
Determines whether the specified MPSCapabilities is equal to the current instance.
public bool Equals(MPSCapabilities other)
Parameters
otherMPSCapabilitiesThe instance to compare with the current instance.
Returns
- bool
true if the specified instance is equal to the current instance; otherwise, false.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance.
Operators
operator ==(MPSCapabilities, MPSCapabilities)
Determines whether two specified instances of MPSCapabilities are equal.
public static bool operator ==(MPSCapabilities left, MPSCapabilities right)
Parameters
leftMPSCapabilitiesThe first instance to compare.
rightMPSCapabilitiesThe second instance to compare.
Returns
- bool
true if left and right are equal; otherwise, false.
operator !=(MPSCapabilities, MPSCapabilities)
Determines whether two specified instances of MPSCapabilities are not equal.
public static bool operator !=(MPSCapabilities left, MPSCapabilities right)
Parameters
leftMPSCapabilitiesThe first instance to compare.
rightMPSCapabilitiesThe second instance to compare.
Returns
- bool
true if left and right are not equal; otherwise, false.