Table of Contents

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

string

CpuOnly

Gets a static instance representing CPU-only compute.

public static DeviceInfo CpuOnly { get; }

Property Value

DeviceInfo

DeviceName

Gets the name of the compute device (GPU model or CPU name).

public string DeviceName { get; init; }

Property Value

string

HasGpu

Gets a value indicating whether a GPU is available for compute.

public bool HasGpu { get; init; }

Property Value

bool

MaxThreads

Gets the maximum number of concurrent threads supported.

public int MaxThreads { get; init; }

Property Value

int

PreferredBackend

Gets the preferred compute backend based on hardware detection.

public ComputeBackendType PreferredBackend { get; init; }

Property Value

ComputeBackendType

SupportsUnifiedMemory

Gets a value indicating whether unified memory is supported.

public bool SupportsUnifiedMemory { get; init; }

Property Value

bool

TotalMemory

Gets the total memory available on the device in bytes.

public long TotalMemory { get; init; }

Property Value

long