Table of Contents

Class MetalUtilities

Namespace
DotCompute.Backends.Metal.Utilities
Assembly
DotCompute.Backends.Metal.dll

Utility functions for Metal backend operations.

public static class MetalUtilities
Inheritance
MetalUtilities
Inherited Members

Methods

FormatBytes(long)

Formats a byte size into a human-readable string.

public static string FormatBytes(long bytes)

Parameters

bytes long

Returns

string

GetAllDevices()

Gets information about all available Metal devices.

public static MetalDeviceInfoWrapper[] GetAllDevices()

Returns

MetalDeviceInfoWrapper[]

GetDeviceCount()

Gets the number of available Metal devices.

public static int GetDeviceCount()

Returns

int

IsMetalAvailable()

Checks if Metal is available on the current system.

public static bool IsMetalAvailable()

Returns

bool