Class DeviceInfo
- Namespace
- DotCompute.Abstractions.Models.Device
- Assembly
- DotCompute.Abstractions.dll
Provides information about the compute device and selected backend.
public sealed class DeviceInfo
- Inheritance
-
DeviceInfo
- Inherited Members
Remarks
This type is returned by GetDeviceInfo() to help consumers understand what compute capabilities are available.
Properties
ComputeCapability
Gets the compute capability or driver version string.
public string? ComputeCapability { get; init; }
Property Value
CpuOnly
Gets a static instance representing CPU-only compute.
public static DeviceInfo CpuOnly { get; }
Property Value
DeviceName
Gets the name of the compute device (GPU model or CPU name).
public string DeviceName { get; init; }
Property Value
HasGpu
Gets a value indicating whether a GPU is available for compute.
public bool HasGpu { get; init; }
Property Value
MaxThreads
Gets the maximum number of concurrent threads supported.
public int MaxThreads { get; init; }
Property Value
PreferredBackend
Gets the preferred compute backend based on hardware detection.
public ComputeBackendType PreferredBackend { get; init; }
Property Value
SupportsUnifiedMemory
Gets a value indicating whether unified memory is supported.
public bool SupportsUnifiedMemory { get; init; }
Property Value
TotalMemory
Gets the total memory available on the device in bytes.
public long TotalMemory { get; init; }