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
byteslong
Returns
GetAllDevices()
Gets information about all available Metal devices.
public static MetalDeviceInfoWrapper[] GetAllDevices()
Returns
GetDeviceCount()
Gets the number of available Metal devices.
public static int GetDeviceCount()
Returns
IsMetalAvailable()
Checks if Metal is available on the current system.
public static bool IsMetalAvailable()