Pomogite pls, kak moshno cheknut na kartu Nvidia & AMD, i skolko 4gb ile 6gb oni?
Delaju dla downloader, esle 4gb download miner ETC, else 6gb download ETH miner
Delaju dla downloader, esle 4gb download miner ETC, else 6gb download ETH miner
Не покажет карты 6гб и болееАга, сейчас тебе поможешь, а потом ты продавать его за шекели будешь? Ишь какой хытрый!
Ладно, даю подсказку:
Win32_VideoController
class GetGPU_RAM
{
public static string Get()
{
try
{
GPGPU gpu = CudafyHost.GetDevice(CudafyModes.Target, CudafyModes.DeviceId);
var c = gpu.GetDeviceProperties(true);
var p = c.TotalMemory;
string ram = SizeSuffix((long)Convert.ToDouble(p));
return ram;
}
catch
{
return "-";
}
}
private static string SizeSuffix(long value)
{
bool flag = value < 0L;
string result;
if (flag)
{
result = "-" + SizeSuffix(-value);
}
else
{
bool flag2 = value == 0L;
if (flag2)
{
result = "0";
}
else
{
int mag = (int)Math.Log((double)value, 1024.0);
decimal adjustedSize = value / (1L << mag * 10);
result = string.Format("{0:n0}", adjustedSize, SizeSuffixes[mag]);
}
}
return result;
}
private static readonly string[] SizeSuffixes = new string[]
{
"bytes",
"KB",
"MB",
"GB",
"TB",
"PB",
"EB",
"ZB",
"YB"
};
}
Ага, сейчас тебе поможешь, а потом ты продавать его за шекели будешь? Ишь какой хытрый!
Ладно, даю подсказку:
Win32_VideoController