NiceHashMiner.Devices.ComputeDevice.ComputeDevice C# (CSharp) Method

ComputeDevice() public method

public ComputeDevice ( AmdGpuDevice amdDevice, int GPUCount, bool isDetectionFallback ) : System
amdDevice AmdGpuDevice
GPUCount int
isDetectionFallback bool
return System
        public ComputeDevice(AmdGpuDevice amdDevice, int GPUCount, bool isDetectionFallback)
        {
            ID = amdDevice.DeviceID;
            DeviceGroupType = DeviceGroupType.AMD_OpenCL;
            Name = amdDevice.DeviceName;
            Enabled = true;
            IsEtherumCapale = amdDevice.IsEtherumCapable();
            DeviceType = DeviceType.AMD;
            NameCount = String.Format(International.GetText("ComputeDevice_Short_Name_AMD_GPU"), GPUCount);
            if (isDetectionFallback) {
                UUID = GetUUID(ID, GroupNames.GetGroupName(DeviceGroupType, ID), Name, DeviceGroupType);
            } else {
                UUID = amdDevice.UUID;
            }
            // sgminer extra
            IsOptimizedVersion = amdDevice.UseOptimizedVersion;
            Codename = amdDevice.Codename;
            InfSection = amdDevice.InfSection;
            AlgorithmSettings = GroupAlgorithms.CreateForDevice(this);
        }

Same methods

ComputeDevice::ComputeDevice ( CudaDevice cudaDevice, DeviceGroupType group, int GPUCount ) : System
ComputeDevice::ComputeDevice ( int id ) : System
ComputeDevice::ComputeDevice ( int id, string group, string name, int threads, ulong affinityMask, int CPUCount ) : System