C# Class NiceHashMiner.Devices.ComputeDevice

Show file Open project: nicehash/NiceHashMiner Class Usage Examples

Public Properties

Property Type Description
AffinityMask ulong
Codename string
DeviceGroupType DeviceGroupType
DeviceType DeviceType
Enabled bool
ID int
InfSection string
IsEtherumCapale bool
IsOptimizedVersion bool
MEMORY_3GB ulong
Name string
NameCount string
Threads int
UUID string

Public Methods

Method Description
ComputeDevice ( AmdGpuDevice amdDevice, int GPUCount, bool isDetectionFallback ) : System
ComputeDevice ( CudaDevice cudaDevice, DeviceGroupType group, int GPUCount ) : System
ComputeDevice ( int id ) : System
ComputeDevice ( int id, string group, string name, int threads, ulong affinityMask, int CPUCount ) : System
CopyBenchmarkSettingsFrom ( ComputeDevice copyBenchCDev ) : void
GetAlgorithmDeviceConfig ( ) : DeviceBenchmarkConfig
GetComputeDeviceConfig ( ) : ComputeDeviceConfig
GetFullName ( ) : string
SetAlgorithmDeviceConfig ( DeviceBenchmarkConfig config ) : void
SetFromComputeDeviceConfig ( ComputeDeviceConfig config ) : void

Private Methods

Method Description
GetUUID ( int id, string group, string name, DeviceGroupType deviceGroupType ) : string

Method Details

ComputeDevice() public method

public ComputeDevice ( AmdGpuDevice amdDevice, int GPUCount, bool isDetectionFallback ) : System
amdDevice AmdGpuDevice
GPUCount int
isDetectionFallback bool
return System

ComputeDevice() public method

public ComputeDevice ( CudaDevice cudaDevice, DeviceGroupType group, int GPUCount ) : System
cudaDevice CudaDevice
group DeviceGroupType
GPUCount int
return System

ComputeDevice() public method

public ComputeDevice ( int id ) : System
id int
return System

ComputeDevice() public method

public ComputeDevice ( int id, string group, string name, int threads, ulong affinityMask, int CPUCount ) : System
id int
group string
name string
threads int
affinityMask ulong
CPUCount int
return System

CopyBenchmarkSettingsFrom() public method

public CopyBenchmarkSettingsFrom ( ComputeDevice copyBenchCDev ) : void
copyBenchCDev ComputeDevice
return void

GetAlgorithmDeviceConfig() public method

public GetAlgorithmDeviceConfig ( ) : DeviceBenchmarkConfig
return NiceHashMiner.Configs.Data.DeviceBenchmarkConfig

GetComputeDeviceConfig() public method

public GetComputeDeviceConfig ( ) : ComputeDeviceConfig
return NiceHashMiner.Configs.Data.ComputeDeviceConfig

GetFullName() public method

public GetFullName ( ) : string
return string

SetAlgorithmDeviceConfig() public method

public SetAlgorithmDeviceConfig ( DeviceBenchmarkConfig config ) : void
config NiceHashMiner.Configs.Data.DeviceBenchmarkConfig
return void

SetFromComputeDeviceConfig() public method

public SetFromComputeDeviceConfig ( ComputeDeviceConfig config ) : void
config NiceHashMiner.Configs.Data.ComputeDeviceConfig
return void

Property Details

AffinityMask public property

public ulong AffinityMask
return ulong

Codename public property

public string Codename
return string

DeviceGroupType public property

public DeviceGroupType DeviceGroupType
return DeviceGroupType

DeviceType public property

public DeviceType DeviceType
return DeviceType

Enabled public property

public bool Enabled
return bool

ID public property

public int ID
return int

InfSection public property

public string InfSection
return string

IsEtherumCapale public property

public bool IsEtherumCapale
return bool

IsOptimizedVersion public property

public bool IsOptimizedVersion
return bool

MEMORY_3GB public static property

public static ulong MEMORY_3GB
return ulong

Name public property

public string Name
return string

NameCount public property

public string NameCount
return string

Threads public property

public int Threads
return int

UUID public property

public string UUID
return string