Skip to content

< Back


SystemInfo

Namespace: LLama.Native

Operating system information.

1
public class SystemInfo : System.IEquatable`1[[LLama.Native.SystemInfo, LLamaSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectSystemInfo
Implements IEquatable<SystemInfo>
Attributes NullableContextAttribute, NullableAttribute

Properties

EqualityContract

1
protected Type EqualityContract { get; }

Property Value

Type

OSPlatform

1
public OSPlatform OSPlatform { get; set; }

Property Value

OSPlatform

CudaMajorVersion

1
public int CudaMajorVersion { get; set; }

Property Value

Int32

VulkanVersion

1
public string VulkanVersion { get; set; }

Property Value

String

Constructors

SystemInfo(OSPlatform, Int32, String)

Operating system information.

1
public SystemInfo(OSPlatform OSPlatform, int CudaMajorVersion, string VulkanVersion)

Parameters

OSPlatform OSPlatform

CudaMajorVersion Int32

VulkanVersion String

SystemInfo(SystemInfo)

1
protected SystemInfo(SystemInfo original)

Parameters

original SystemInfo

Methods

Get()

Get the system information of the current machine.

1
public static SystemInfo Get()

Returns

SystemInfo

Exceptions

PlatformNotSupportedException

ToString()

1
public string ToString()

Returns

String

PrintMembers(StringBuilder)

1
protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

1
public int GetHashCode()

Returns

Int32

Equals(Object)

1
public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(SystemInfo)

1
public bool Equals(SystemInfo other)

Parameters

other SystemInfo

Returns

Boolean

<Clone>$()

1
public SystemInfo <Clone>$()

Returns

SystemInfo

Deconstruct(OSPlatform&, Int32&, String&)

1
public void Deconstruct(OSPlatform& OSPlatform, Int32& CudaMajorVersion, String& VulkanVersion)

Parameters

OSPlatform OSPlatform&

CudaMajorVersion Int32&

VulkanVersion String&


< Back