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

ComputeDevice() public method

public ComputeDevice ( CudaDevice cudaDevice, DeviceGroupType group, int GPUCount ) : System
cudaDevice CudaDevice
group DeviceGroupType
GPUCount int
return System
        public ComputeDevice(CudaDevice cudaDevice, DeviceGroupType group, int GPUCount)
        {
            ID = (int)cudaDevice.DeviceID;
            Name = cudaDevice.GetName();
            Enabled = true;
            DeviceGroupType = group;
            IsEtherumCapale = cudaDevice.IsEtherumCapable();
            DeviceType = DeviceType.NVIDIA;
            NameCount = String.Format(International.GetText("ComputeDevice_Short_Name_NVIDIA_GPU"), GPUCount);
            UUID = cudaDevice.UUID;
            AlgorithmSettings = GroupAlgorithms.CreateForDevice(this);
        }

Same methods

ComputeDevice::ComputeDevice ( AmdGpuDevice amdDevice, int GPUCount, bool isDetectionFallback ) : System
ComputeDevice::ComputeDevice ( int id ) : System
ComputeDevice::ComputeDevice ( int id, string group, string name, int threads, ulong affinityMask, int CPUCount ) : System