MetalDevice

Models & Types · AiDotNet.Tensors.Engines.DirectGpu.Metal

No summary documentation available yet.

Implements: IDisposable

Constructors

Constructor Summary
MetalDevice()
MetalDevice(int deviceIndex)

Properties

Property Summary
IntPtr Handle { get; }
MTLSize MaxThreadsPerThreadgroup { get; }
bool IsAvailable { get; }
bool IsMetalAvailable { get; }
bool SupportsApple7 { get; }
bool SupportsApple8 { get; }
bool SupportsApple9 { get; }
bool SupportsMetal3 { get; }
int EstimatedGPUCores { get; }
string DeviceName { get; }
ulong CurrentAllocatedSize { get; }
ulong MaxBufferLength { get; }
ulong MaxThreadgroupMemoryLength { get; }
ulong RecommendedMaxWorkingSetSize { get; }
ulong RegistryID { get; }

Methods

Method Summary
IntPtr CreateBuffer(ulong sizeInBytes, MTLResourceOptions options)
IntPtr CreateBufferWithData(IntPtr data, ulong sizeInBytes, MTLResourceOptions options)
IntPtr CreateCommandQueue()
IntPtr CreateCommandQueue(ulong maxCommandBufferCount)
IntPtr CreateComputePipelineState(IntPtr function, string error)
IntPtr CreateLibrary(string source, IntPtr compileOptions, string error)
IntPtr CreateLibrary(string source, string error)
IntPtr TryCreateStrictFloatingPointOptions()
MetalDeviceInfo[] GetAvailableDevices()
bool SupportsGPUFamily(MTLGPUFamily family)
void Dispose()