Table of Contents

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

int

SupportsBLAS

Supports BLAS operations (matrix multiply, GEMM, etc.)

public readonly byte SupportsBLAS

Field Value

byte

SupportsCNN

Supports CNN operations (convolution, pooling, etc.)

public readonly byte SupportsCNN

Field Value

byte

SupportsNeuralNetwork

Supports neural network primitives (activation, batch norm, etc.)

public readonly byte SupportsNeuralNetwork

Field Value

byte

Properties

GPUFamily

public string GPUFamily { get; }

Property Value

string

HasBLAS

public bool HasBLAS { get; }

Property Value

bool

HasCNN

public bool HasCNN { get; }

Property Value

bool

HasNeuralNetwork

public bool HasNeuralNetwork { get; }

Property Value

bool

Methods

Equals(MPSCapabilities)

Determines whether the specified MPSCapabilities is equal to the current instance.

public bool Equals(MPSCapabilities other)

Parameters

other MPSCapabilities

The 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

obj object

The 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

left MPSCapabilities

The first instance to compare.

right MPSCapabilities

The 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

left MPSCapabilities

The first instance to compare.

right MPSCapabilities

The second instance to compare.

Returns

bool

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